hounddog/hd-api-client

Zend Framework 2 Module that provides base api functionalities

Maintainers

👁 Hounddog

Package info

github.com/Hounddog/hd-api-client

pkg:composer/hounddog/hd-api-client

Statistics

Installs: 66

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2014-06-24 13:19 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 6695c49bf6f92df04d97386d09e36fb3e5036e31

  • Martin Shwalbe <martin.shwalbe.woop@gmail.com>

apizf2

This package is not auto-updated.

Last update: 2026-06-16 09:53:42 UTC


README

👁 Latest Stable Version
👁 Latest Unstable Version
👁 Build Status
👁 Code Coverage
👁 Scrutinizer Code Quality

Introduction

HdClientApi is a connector for variuous Api based Modules (e.g. Github, Twitter, Instagramm etc) based on Zend Framework 2 .

Installation

Main Setup

  1. Clone this project into your ./vendor/ directory and enable it in your application.config.php file.

Usage

Basic Usage

Here is short example on how to use

$client = $serviceManager->get('EdpGithub\Client');
$repos = $client->api('user')->repos('hounddog');

This would fetch all the Repositories for the user Hounddog

Authentication

To use functionality which needs Authentication you have to first authenticate

$client = $serviceManager->get('EdpGithub\Client');
$client->authenticate('url_token', 'access_token');
$repos = $client->api('current_user')->repos();

You can also listen to the Event 'EdpGithub\Client', 'api'

$em->attach('EdpGithub\Client', 'api', function($e) use ($sm) {
 $client = $e->getTarget();
 $client->authenticate('url_token', $token /* your access_token here */);
} );

Documentation

Please refer to the Wiki for a more detailed Documentation