PHP 클래스 Acacha\Llum\Github\GithubAPI

파일 보기 프로젝트 열기: acacha/llum 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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;

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

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

authorization_url() 보호된 메소드

Authorization URL.
protected authorization_url ( ) : string
리턴 string

authorizationsRequestJson() 보호된 메소드

protected authorizationsRequestJson ( ) : array
리턴 array

compile() 보호된 메소드

Compile the template using the given data.
protected compile ( $template, $data ) : mixed
$template
$data
리턴 mixed

compileStub() 보호된 메소드

Compile stub.
protected compileStub ( $repo_name, $repo_description ) : mixed
$repo_name
$repo_description
리턴 mixed

createRepo() 공개 메소드

Create repo in github.
public createRepo ( $repo_name, $repo_description ) : mixed
$repo_name
$repo_description
리턴 mixed

create_repo_url() 보호된 메소드

Create repo URL.
protected create_repo_url ( ) : string
리턴 string

credentials() 보호된 메소드

Get github credentials.
protected credentials ( ) : mixed
리턴 mixed

getPersonalToken() 공개 메소드

Obtain personal token.
public getPersonalToken ( $username, $password ) : mixed
$username
$password
리턴 mixed

repo_json_stub() 보호된 메소드

Path to repo.json stub
protected repo_json_stub ( ) : string
리턴 string

setCredentials() 공개 메소드

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

tokenName() 공개 메소드

public tokenName ( ) : mixed
리턴 mixed

프로퍼티 상세

$api_url 보호되어 있는 프로퍼티

Github API URL.
protected string $api_url
리턴 string

$authorizations_uri 보호되어 있는 프로퍼티

Authorization URI in github API.
protected string $authorizations_uri
리턴 string

$client 보호되어 있는 프로퍼티

Guzzle http client.
protected Client,GuzzleHttp $client
리턴 GuzzleHttp\Client

$filesystem 보호되어 있는 프로퍼티

Acacha Llum Filesystem.
protected Filesystem,Acacha\Llum\Filesystem $filesystem
리턴 Acacha\Llum\Filesystem\Filesystem

$repos_uri 보호되어 있는 프로퍼티

Authorization URI in github API.
protected string $repos_uri
리턴 string

$tokenName 보호되어 있는 프로퍼티

Token name;
protected $tokenName