GitHub API Helper for PHP 5.3+

A PHP class that makes it easy to help you
embed commits, issues and milestones on your website.

 Download GitCurl 1.0α  Documentation


Click the download button above or git clone git://

Initialize gitCurl

Simply require and init the class like:
require_once ( 'curl-git.class.php' ); // include class
$gitCurl = new gitCurl(); // create new gitCurl object


Make a simple request

To get commits, use this method: $gitCurl->getData('your api url')
$data = $gitCurl->getData(''); // your GitHub API URL

Draw Data

Basic Data Output

$gitCurl->printData($data); // print Issues (data only)

Draw Issues with Bootstrap 4 Cards

$gitCurl->drawIssues($data); // draw Issues (card view)

Full-featured code example
take a look at this basic code example and see how it works

Embed Commits

Issues and Milestones

// include class
require_once ('gitCurl.class.php');

// create new gitCurl object
$gitCurl = new gitCurl();

// grab data from GitHub with any API URL
$commits = $gitCurl->getData('');
$issues = $gitCurl->getData('');
$milestones = $gitCurl->getData('');

// finished for now - data array is filled.
// now it's time to take care about the layout.

<script src=""></script>
<script src=""></script>
<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
  <div class="container-fluid">
   <div class="row">
     <div class="col-md-2">
       <?PHP $gitCurl->drawCommits($commits); ?>
     <div class="col-md-4">
       <?PHP $gitCurl->drawIssues($issues); ?>
     <div class="col-md-4">
       <?PHP $gitCurl->drawMilestones($milestones); ?>

GitCurl Help
Class Documentation

If you want to modify or extend the class, you should start with the GitCurl Docs:
GitCurl Class Documentation

GitHub API Help
get more information

You can learn everything about the GitHub API here:

For more information on cURL & PHP visit:

Donate to this project
Send $10 with PayPal

This project is free, licensed under the MIT license.
If you like it, support it! Download it, use it, spread the word!
You help me developing more tools if you spend a few bucks.

If you can - thank you!

Become a believer and get linked

The list will be updated on every release.

Get in contact
with the developer

Daniel Retzl
on GitHub
on Twitter
on Facebook

other projects:
Yet another WebKit