GitHub API Helper for PHP 5.3+ is a php class that makes it easy to help you embed commits, issues and milestones on your website.
Simply require and init the class like: require_once ( 'curl-git.class.php' ); // include class $gitCurl = new gitCurl(); // create new gitCurl object
To get commits, use this method: $gitCurl->getData('your api url') $data = $gitCurl->getData('https://api.github.com/repos/USERNAME/REPOSITORY/commits'); // your GitHub API URL
(Examples)
$gitCurl->printData($data); // print Issues (data only)
Draw Issues with Bootstrap 4 Cards $gitCurl->drawIssues($data); // draw Issues (card view)
Class Documentation If you want to modify or extend the class, you should start with the GitCurl Docs: GitCurl Class Documentation
get more information You can learn everything about the GitHub API here: https://developer.github.com/v3/
For more information on cURL & PHP visit: http://php.net/manual/book.curl.php