PHPackages                             insidenothing/php-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. insidenothing/php-github-api

ActiveLibrary[API Development](/categories/api)

insidenothing/php-github-api
============================

GitHub API v3 client

2.9.0(7y ago)05MITPHPPHP ^5.6 || ^7.0

Since Jul 12Pushed 7y agoCompare

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

READMEChangelogDependencies (13)Versions (60)Used By (0)

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

[](#php-github-api)

[![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)[![Latest Stable Version](https://camo.githubusercontent.com/131ebb31637b06670ba7610717e2e3d74018c99dd1809419f85084f2b753b44f/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6769746875622d6170692f762f737461626c65)](https://packagist.org/packages/knplabs/github-api)[![Total Downloads](https://camo.githubusercontent.com/83fcd5b554040644310750dbb454571703c08bcdd34a7ddbeaee6e2a8d624d47/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6769746875622d6170692f646f776e6c6f616473)](https://packagist.org/packages/knplabs/github-api)[![Latest Unstable Version](https://camo.githubusercontent.com/4be24f8ddd380825b46c590a93003d94c1ca11d19cf690e34e225505ed4cc30c/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6769746875622d6170692f762f756e737461626c65)](https://packagist.org/packages/knplabs/github-api)[![Monthly Downloads](https://camo.githubusercontent.com/08b4eedb9652c803b8b8b5c505fb051aa8e94fd9ee94fe5780e8d8f63356a4af/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6769746875622d6170692f642f6d6f6e74686c79)](https://packagist.org/packages/knplabs/github-api)[![Daily Downloads](https://camo.githubusercontent.com/068ddd69415d4de39046fb21426952a2cf2afa5a251f5e836cadfa46f8debc02/68747470733a2f2f706f7365722e707567782e6f72672f6b6e706c6162732f6769746875622d6170692f642f6461696c79)](https://packagist.org/packages/knplabs/github-api)

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

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

Features
--------

[](#features)

- Light and fast thanks to lazy loading of API classes
- Extensively tested and documented

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

[](#requirements)

- PHP &gt;= 5.6
- A [HTTP client](https://packagist.org/providers/php-http/client-implementation)
- A [PSR-7 implementation](https://packagist.org/providers/psr/http-message-implementation)
- (optional) PHPUnit to run tests.

Install
-------

[](#install)

Via Composer:

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

Why `php-http/guzzle6-adapter`? We are decoupled from 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)

```
