servebolt / sdk
A PHP SDK for communicating with the Servebolt API.
1.2.9
2024-12-17 07:53 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- jakeasmith/http_build_url: ^1
Requires (Dev)
- dms/phpunit-arraysubset-asserts: ^0.2.1
- mockery/mockery: ^1.4
- overtrue/phplint: ^2.3
- phan/phan: ^4.0
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.5
- vlucas/phpdotenv: ^5.3
- dev-master
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.2.0-beta
- 1.1.0-beta.1
- 1.1.0-beta
- 1.0.0
- 1.0.0-beta.12
- 1.0.0-beta.11
- 1.0.0-beta.10
- 1.0.0-beta.9
- 1.0.0-beta.8
- 1.0.0-beta.7
- 1.0.0-beta.6
- 1.0.0-beta.5
- 1.0.0-beta.4
- 1.0.0-beta.3
- 1.0.0-beta.2
- 1.0.0-beta.1
- 1.0.0-beta
- dev-develop
- dev-test_composer_update
This package is auto-updated.
Last update: 2024-12-17 08:14:33 UTC
README
A PHP-based software development kit to access the Servebolt API.
Get started
You can install servebolt-php-sdk via composer or by downloading the source.
Via Composer:
servebolt-php-sdk is available on Packagist as the
servebolt/sdk
package:
composer require servebolt/sdk
From source:
You can also build the source code yourself.
- Check out source:
git clone git@github.com:Servebolt/php-sdk.git
- Navigate into directory:
cd php-sdk
- Run
composer install
Usage
Initialization
Remember to include the Composer autoload-file!
require __DIR__ . '/vendor/autoload.php'; use Servebolt\Sdk\Client; $client = new Client([ 'apiToken' => 'your-api-token', ]); $response = $client->cron->list(); // Example call - get all cron jobs
Documentation
Please visit our documentation for further details.