devlau / runrunit
SDK PHP (não oficial) para a API do RunRun.it (v1.0)
Installs: 1 173
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Type:package
Requires
- php: ^7.2|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.3.1|^7.0
Requires (Dev)
- mockery/mockery: ^1.3.1
- phpunit/phpunit: ^8.4|^9.0
README
SDK PHP (não oficial) para integração com a API do RunRun.it (v1.0).
O modelo do código foi baseado no Laravel's Forge SDK.
Para mais informações sobre a API do Runrunit, consulte a documentação oficial.
Table of Contents
Installation
This package can be installed through Composer:
$ composer require devlau/runrunit
Make sure to use Composer's autoload:
Start by creating a new instance:
$runrunit = new Runrunit(RUNRUNIT_APP_KEY, RUNRUNIT_USER_TOKEN);
Your APP_KEY and USER_TOKEN can be found in your account on the Settings page.
Usage
Once instantiated, you can simply call one of the methods provided by the SDK:
$runrunit->projects();
This will provide you with a list of available projects.
To create a project, you can use the createProject
method:
$project = $runrunit->createProject( 'Project name', 1, // Client ID );
When the request was successful, $project
will contain a Project object with the project details.
Changelog
Refer to CHANGELOG for more information.
License
The MIT License (MIT). Refer to the License for more information.