PHP code example of milo / github-api

1. Go to this page and download the library: Download milo/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/ */

    

milo / github-api example snippets


use Milo\Github;

$api = new Github\Api;
$response = $api->get('/emojis');
$emojis = $api->decode($response);

print_r($emojis);

stdClass Object (
    [+1] => https://github.global.ssl.fastly.net/images/icons/emoji/+1.png?v5
    [-1] => https://github.global.ssl.fastly.net/images/icons/emoji/-1.png?v5
    [100] => https://github.global.ssl.fastly.net/images/icons/emoji/100.png?v5
    [1234] => https://github.global.ssl.fastly.net/images/icons/emoji/1234.png?v5
    [8ball] => https://github.global.ssl.fastly.net/images/icons/emoji/8ball.png?v5
    [a] => https://github.global.ssl.fastly.net/images/icons/emoji/a.png?v5
    ...
)