2017 © Pedro Peláez
 

zf-module edp-github

Github API integration module for Zend Framework 2

image

evandotpro/edp-github

Github API integration module for Zend Framework 2

  • Saturday, October 24, 2015
  • by Hounddog
  • Repository
  • 5 Watchers
  • 29 Stars
  • 1,480 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Github Api Module for ZF2

Build Status Coverage Status, (*1)

Introduction

EdpGithub is a Wrapper for the Github Api based on Zend Framework 2 which uses Github API v3., (*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/12 2013

v0.1-alpha

0.1.0.0-alpha https://github.com/EvanDotPro/EdpGithub

Github API integration module for Zend Framework 2

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

api zf2 module github