Enterprise API

Back to the navigation

Provides information about a GitHub Enterprise installation. Wraps GitHub Enterprise API.

In order to configure the client to point to a GitHub Enterprise installation, do the following:


// This file is generated by Composer
require_once 'vendor/autoload.php';

$client = new \Github\Client();

// Set the URL of your GitHub Enterprise installation

// Use the client as you would ordinarily
$repositories = $client->api('user')->repositories('ornicar');

To use the Stats and License APIs, you will need to authenticate using a GitHub Enterprise site admin account.