Documentation

GitHub
in package

Tags
author

Jordi Boggiano j.boggiano@seld.be

Table of Contents

$config  : mixed
$io  : mixed
$process  : mixed
$remoteFilesystem  : mixed
__construct()  : mixed
Constructor.
authorizeOAuth()  : bool
Attempts to authorize a GitHub domain via OAuth
authorizeOAuthInteractively()  : bool
Authorizes a GitHub domain interactively via OAuth
getRateLimit()  : array<string|int, mixed>
Extract ratelimit from response.
isRateLimited()  : bool
Finds whether a request failed due to rate limiting

Properties

$process

protected mixed $process

$remoteFilesystem

protected mixed $remoteFilesystem

Methods

authorizeOAuth()

Attempts to authorize a GitHub domain via OAuth

public authorizeOAuth(string $originUrl) : bool
Parameters
$originUrl : string

The host this GitHub instance is located at

Return values
bool

true on success

authorizeOAuthInteractively()

Authorizes a GitHub domain interactively via OAuth

public authorizeOAuthInteractively(string $originUrl[, string $message = null ]) : bool
Parameters
$originUrl : string

The host this GitHub instance is located at

$message : string = null

The reason this authorization is required

Tags
throws
RuntimeException
throws
TransportException|Exception
Return values
bool

true on success

getRateLimit()

Extract ratelimit from response.

public getRateLimit(array<string|int, mixed> $headers) : array<string|int, mixed>
Parameters
$headers : array<string|int, mixed>

Headers from Composer\Downloader\TransportException.

Return values
array<string|int, mixed>

Associative array with the keys limit and reset.

isRateLimited()

Finds whether a request failed due to rate limiting

public isRateLimited(array<string|int, mixed> $headers) : bool
Parameters
$headers : array<string|int, mixed>

Headers from Composer\Downloader\TransportException.

Return values
bool

Search results