evandotpro/edp-github

Github API integration module for Zend Framework 2

Maintainers

👁 Hounddog

Package info

github.com/EvanDotPro/EdpGithub

Type:zf-module

pkg:composer/evandotpro/edp-github

Statistics

Installs: 2 314

Dependents: 0

Suggesters: 0

Stars: 24

Open Issues: 0

0.4.0 2015-10-24 07:29 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-2-Clause 51f3e33e02edbef011103e3c2c1629d46af011a3

apizf2modulegithub

This package is not auto-updated.

Last update: 2026-06-16 13:50:33 UTC


README

👁 Build Status
👁 Coverage Status

Introduction

EdpGithub is a Wrapper for the Github Api based on Zend Framework 2 which uses Github API v3.

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