A PHP-based software development kit to access the Servebolt API.
You can install servebolt-php-sdk via composer or by downloading the source.
servebolt-php-sdk is available on Packagist as the
servebolt/sdk
package:
composer require servebolt/sdk
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
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
Please visit our documentation for further details.