Property | Type | Description | |
---|---|---|---|
$api_url | string | Github API URL. | |
$authorizations_uri | string | Authorization URI in github API. | |
$client | Guzzle http client. | ||
$filesystem | Acacha Llum Filesystem. | ||
$repos_uri | string | Authorization URI in github API. | |
$tokenName | Token name; |
Method | Description | |
---|---|---|
__construct ( |
GithubAPI constructor. | |
createRepo ( $repo_name, $repo_description ) : mixed | Create repo in github. | |
getPersonalToken ( $username, $password ) : mixed | Obtain personal token. | |
setCredentials ( array $credentials ) | Set github credentials. | |
tokenName ( ) : mixed |
Method | Description | |
---|---|---|
authorization_url ( ) : string | Authorization URL. | |
authorizationsRequestJson ( ) : array | ||
compile ( $template, $data ) : mixed | Compile the template using the given data. | |
compileStub ( $repo_name, $repo_description ) : mixed | Compile stub. | |
create_repo_url ( ) : string | Create repo URL. | |
credentials ( ) : mixed | Get github credentials. | |
repo_json_stub ( ) : string | Path to repo.json stub |
public __construct ( |
||
$filesystem |
protected authorization_url ( ) : string | ||
return | string |
protected authorizationsRequestJson ( ) : array | ||
return | array |
protected compileStub ( $repo_name, $repo_description ) : mixed | ||
$repo_name | ||
$repo_description | ||
return | mixed |
public createRepo ( $repo_name, $repo_description ) : mixed | ||
$repo_name | ||
$repo_description | ||
return | mixed |
protected create_repo_url ( ) : string | ||
return | string |
protected credentials ( ) : mixed | ||
return | mixed |
public getPersonalToken ( $username, $password ) : mixed | ||
$username | ||
$password | ||
return | mixed |
protected repo_json_stub ( ) : string | ||
return | string |
public setCredentials ( array $credentials ) | ||
$credentials | array |
protected string $authorizations_uri | ||
return | string |
protected Client,GuzzleHttp $client | ||
return |
protected Filesystem,Acacha\Llum\Filesystem $filesystem | ||
return |
protected string $repos_uri | ||
return | string |