All API requests MUST include a valid User-Agent header. Requests with no User-Agent header will be rejected.
<?
$context = stream_context_create([
'http' => [
'header' => 'User-Agent: Awesome-Octocat-App'
]
]);
$url = 'https://api.github.com/repos/modxcms/revolution/tags';
$json = file_get_contents($url, false, $context);
$releases = json_decode($json, true);
echo '<pre>';
var_dump($releases);
echo '</pre>';