GitHub API A PHP library to interact with the github.com API

Getting Started

Setup

View the API Documentation for this class

All classes are in the duncan3dc\GitHub namespace.

To get started, you’ll need the ID of your GitHub App, and the private key.

use duncan3dc\GitHub\Api;

$key = file_get_contents(__DIR__ . "/github-api-key.pem");
$api = new Api(99999, $key);
foreach ($api->getOrganizations() as $organization) {
    echo $organization->getName() . "\n";
}