Class gitCurl
GitCurl Documentation
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.
Copyright:
2018
License: https://opensource.org/licenses/MIT
Author: Daniel Retzl
Link: http://gitcurl.yawk.io/
Located at gitCurl.class.php
License: https://opensource.org/licenses/MIT
Author: Daniel Retzl
Link: http://gitcurl.yawk.io/
Located at gitCurl.class.php
public
|
#
isInstalled( )
Check if cURL is installed and call init method. If cURL is not installed, abort with error message. |
public
string
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
string
|
|
public
mixed
|
#
replaceIssueWithLink( string $commitMessage )
If a commit contains a string like 'issue #123', the hashtag will be converted to a link which leads to this issue on GitHub. |
public
array
|
|
public
|
|
public
string
|
|
public
|
|
public
|
public
string
|
$username
GitHub username |
#
'username'
|
public
string
|
$password
GitHub password |
#
'password'
|
public
string
|
$userAgent
User Agent String |
#
''
|
public
string
|
$projectName
Project name that will be displayed in heading |
#
"yawk.io"
|
public
string
|
$projectUrl
GitHub project URL |
#
"https://github.com/YaWK/yawk.io/"
|
public
string
|
$masterZip
Link to the master zip file on GitHub |
#
"https://github.com/YaWK/yawk.io/archive/master.zip"
|
public
string
|
$apiURL
GitHub API Link (your request) |
#
'https://api.github.com/repos/YaWK/yawk.io/milestones?state=open'
|
public
string
|
$state
Which state should be loaded on default |
#
'closed'
|
public
boolean
|
$authentication
True, if repository needs authentication |
#
true
|
public
boolean
|
$custom
True, if user loads a custom repository |
#
false
|
public
string
|
$curl
Holds the cURL handle |
#
''
|
public
string
|
$result
API result as json string |
#
''
|
public
array
|
$data
API result as array |
#
array()
|