PHP Class Acacha\Llum\Github\GithubAPI

Afficher le fichier Open project: acacha/llum Class Usage Examples

Protected Properties

Свойство Type Description
$api_url string Github API URL.
$authorizations_uri string Authorization URI in github API.
$client GuzzleHttp\Client Guzzle http client.
$filesystem Acacha\Llum\Filesystem\Filesystem Acacha Llum Filesystem.
$repos_uri string Authorization URI in github API.
$tokenName Token name;

Méthodes publiques

Méthode Description
__construct ( Filesystem $filesystem ) 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

Méthodes protégées

Méthode 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

Method Details

__construct() public méthode

GithubAPI constructor.
public __construct ( Filesystem $filesystem )
$filesystem Acacha\Llum\Filesystem\Filesystem

authorization_url() protected méthode

Authorization URL.
protected authorization_url ( ) : string
Résultat string

authorizationsRequestJson() protected méthode

protected authorizationsRequestJson ( ) : array
Résultat array

compile() protected méthode

Compile the template using the given data.
protected compile ( $template, $data ) : mixed
$template
$data
Résultat mixed

compileStub() protected méthode

Compile stub.
protected compileStub ( $repo_name, $repo_description ) : mixed
$repo_name
$repo_description
Résultat mixed

createRepo() public méthode

Create repo in github.
public createRepo ( $repo_name, $repo_description ) : mixed
$repo_name
$repo_description
Résultat mixed

create_repo_url() protected méthode

Create repo URL.
protected create_repo_url ( ) : string
Résultat string

credentials() protected méthode

Get github credentials.
protected credentials ( ) : mixed
Résultat mixed

getPersonalToken() public méthode

Obtain personal token.
public getPersonalToken ( $username, $password ) : mixed
$username
$password
Résultat mixed

repo_json_stub() protected méthode

Path to repo.json stub
protected repo_json_stub ( ) : string
Résultat string

setCredentials() public méthode

Set github credentials.
public setCredentials ( array $credentials )
$credentials array

tokenName() public méthode

public tokenName ( ) : mixed
Résultat mixed

Property Details

$api_url protected_oe property

Github API URL.
protected string $api_url
Résultat string

$authorizations_uri protected_oe property

Authorization URI in github API.
protected string $authorizations_uri
Résultat string

$client protected_oe property

Guzzle http client.
protected Client,GuzzleHttp $client
Résultat GuzzleHttp\Client

$filesystem protected_oe property

Acacha Llum Filesystem.
protected Filesystem,Acacha\Llum\Filesystem $filesystem
Résultat Acacha\Llum\Filesystem\Filesystem

$repos_uri protected_oe property

Authorization URI in github API.
protected string $repos_uri
Résultat string

$tokenName protected_oe property

Token name;
protected $tokenName