2017 © Pedro Peláez
 

library githubfetcher

Very simple Github public project fetching tool.

image

jbroadway/githubfetcher

Very simple Github public project fetching tool.

  • Thursday, January 12, 2012
  • by jbroadway
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GithubFetcher - PHP 5.3+ GitHub project fetching class

  • Copyright: (c) 2012 Johnny Broadway
  • License: http://www.opensource.org/licenses/mit-license.php

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)

Usage:

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);

?>

The Versions

12/01 2012

dev-master

9999999-dev http://github.com/jbroadway/githubfetcher

Very simple Github public project fetching tool.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

git github