PHP code example of owenconti / github-api
1. Go to this page and download the library: Download owenconti/github-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
owenconti / github-api example snippets
// This file is generated by Composer
es = $client->api('user')->repositories('ornicar');
// This file is generated by Composer
lient = new \Redis();
$client->connect('127.0.0.1', 6379);
// Create a PSR6 cache pool
$pool = new RedisCachePool($client);
$client = new \Github\Client();
$client->addCache($pool);
// Do some request
// Stop using cache
$client->removeCache();
bash
$ composer