PHPackages                             kobermeit/github-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. kobermeit/github-api

ActiveLibrary[API Development](/categories/api)

kobermeit/github-api
====================

GitHub API v3 client

2.0.1(9y ago)01.5kMITPHPPHP ^5.5 || ^7.0

Since Jul 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kobermeit/php-github-api)[ Packagist](https://packagist.org/packages/kobermeit/github-api)[ Docs](https://github.com/KnpLabs/php-github-api)[ RSS](/packages/kobermeit-github-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (11)Versions (51)Used By (0)

PHP GitHub API 2.0
==================

[](#php-github-api-20)

In 2.0 lib no longer uses guzzle 3.7, instead it has an HTTPlug abstraction layer.

For old version please check:

- [branch](https://github.com/KnpLabs/php-github-api/tree/1.7)
- [readme](https://github.com/KnpLabs/php-github-api/tree/1.7/README.md)
- [docs](https://github.com/KnpLabs/php-github-api/tree/1.7/doc)

[![Build Status](https://camo.githubusercontent.com/1501c17e03f4463087b95969d174ffb542cc5dd17abf6fcfbeb2750055b99854/68747470733a2f2f7472617669732d63692e6f72672f4b6e704c6162732f7068702d6769746875622d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KnpLabs/php-github-api)[![StyleCI](https://camo.githubusercontent.com/d22b2743b0defd9b8e47bcb315acfbaf380baf34826bc495a5aae787b317c8fc/68747470733a2f2f7374796c6563692e696f2f7265706f732f333934383530312f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/3948501)

A simple Object Oriented wrapper for GitHub API, written with PHP5.

Uses [GitHub API v3](http://developer.github.com/v3/). The object API is very similar to the RESTful API.

Features
--------

[](#features)

- Follows PSR-4 conventions and coding standard: autoload friendly
- Light and fast thanks to lazy loading of API classes
- Extensively tested and documented

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5
- [Guzzle](https://github.com/guzzle/guzzle) library,
- (optional) PHPUnit to run tests.

Autoload
--------

[](#autoload)

The new version of `php-github-api` using [Composer](http://getcomposer.org). The first step to use `php-github-api` is to download composer:

```
$ curl -s http://getcomposer.org/installer | php
```

Then run the following command to require the library:

```
$ php composer.phar require knplabs/github-api php-http/guzzle6-adapter
```

Why `php-http/guzzle6-adapter`? We are decoupled form any HTTP messaging client with help by [HTTPlug](http://httplug.io/). Read about clients in our [docs](doc/customize.md).

Using Laravel?
--------------

[](#using-laravel)

[Laravel GitHub](https://github.com/GrahamCampbell/Laravel-GitHub) by [Graham Campbell](https://github.com/GrahamCampbell) might interest you.

Basic usage of `php-github-api` client
--------------------------------------

[](#basic-usage-of-php-github-api-client)

```
