Skip to content

Instantly share code, notes, and snippets.

@relrod
Forked from JAChapmanII/test.php
Created January 8, 2011 19:19
Show Gist options
  • Save relrod/771071 to your computer and use it in GitHub Desktop.
Save relrod/771071 to your computer and use it in GitHub Desktop.
<html>
<head>
</head>
<body>
<pre>
<?php
$json = file_get_contents( "http://github.com/api/v2/json/repos/show/JAChapmanII" );
$output = json_decode( $json );
foreach( $output->repositories as $repo ) {
echo "<a href='{$repo->url}'>{$repo->name}</a>: {$repo->description}\n";
}
?>
</pre>
What?
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment