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

v1.6.0 2023-11-13 09:11 UTC

This package is auto-updated.

Last update: 2024-11-13 11:26:03 UTC


README

Latest Stable Version License

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.