2017 © Pedro Peláez
 

library hd-api-client

Zend Framework 2 Module that provides base api functionalities

image

hounddog/hd-api-client

Zend Framework 2 Module that provides base api functionalities

  • Tuesday, June 24, 2014
  • by Hounddog
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Client Api Module for Zend Framework 2

Latest Stable Version Latest Unstable Version Build Status Code Coverage Scrutinizer Code Quality, (*1)

Introduction

HdClientApi is a connector for variuous Api based Modules (e.g. Github, Twitter, Instagramm etc) based on Zend Framework 2 ., (*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, (*3)

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

This would fetch all the Repositories for the user Hounddog, (*4)

Authentication

To use functionality which needs Authentication you have to first authenticate, (*5)

$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', (*6)

$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, (*7)

The Versions

03/02 2014

dev-composer

dev-composer

Zend Framework 2 Module that provides base api functionalities

  Sources   Download

MIT

The Requires

 

The Development Requires

api zf2