dev-master
9999999-dev http://github.com/jbroadway/githubfetcherVery simple Github public project fetching tool.
MIT
The Requires
- php >=5.3.0
git github
Wallogit.com
2017 © Pedro Peláez
Very simple Github public project fetching tool.
A very basic Github public project fetching tool. Uses v3 of the Github API through CURL. Useful for quickly fetching a project from Github, and much smaller than the full Github PHP client library., (*1)
tree ();
$first_file = false
foreach ($tree as $item) {
printf ("%s: %s\n", $item->type, $item->path);
if (! $first_file && $item->type === 'blob') {
$first_file = $item;
}
}
// print the contents of the file
echo $github->get ($first_file);
?>
Very simple Github public project fetching tool.
MIT
git github