Skip to content
/ gitCurl Public

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.

License

Notifications You must be signed in to change notification settings

YaWK/gitCurl

Repository files navigation

gitCurl

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.

Usage

Initialize gitCurl

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

Request

Make a simple request

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

Draw Data

(Examples)

Basic Data Output

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

Draw Issues with a nice card view

Draw Issues with Bootstrap 4 Cards $gitCurl->drawIssues($data); // draw Issues (card view)

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: https://developer.github.com/v3/

For more information on cURL & PHP visit: http://php.net/manual/book.curl.php

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published