Get open issues stats of any github repository with this application. Designed using basic curl commands and github api v3.
git-open-issue is designed using php & helps in maintaing api of the same.
$result_total = $openissue->getOpenIssue($url);
$total = $openissue->getJson($result_total);
Thanks to Shippables for the challenge and also thanks to http://stackoverflow.com/questions/1975461/how-to-get-file-get-contents-work-with-https to help me when i was stuck whenever & wherever.
Simply import getOpenIssues.php and initiate class like below
$classname = new OpenIssue;
Its simple to use and simple construct.
$url = "https://github.com/Shippable/support";
$result_total = $openissue->getOpenIssue($url);
$total = $openissue->getJson($result_total);
if ($total['success'] == 0) {
$error_msg = $total['data'];
}else {
$total_open_issues = $total['data']['open_issues_count'];
echo $total_open_issues;
}
I have made it on own so i certainly don't think this would be appropriate right now. But all contributors are thanked in advance.
In future the same api can be transformed into a full fledged github api with added functionality that shall help in managing this api for advanced user with more than 10 github repository handled. Also the same api can be built into an application which will serve as dashboard for devlopers who can manage their code at one interface and also deploy from same api.But all this is possible if given the time and liked minded contributors coming together else the above said shall be just words.
This source file is subject to version 3.01 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_01.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.