Skip to content

PHP SDK

What it’ll look like

use Recuro\Recuro;
$recuro = new Recuro('YOUR_API_TOKEN');
// Create a cron
$recuro->crons->create([
'name' => 'Nightly cleanup',
'url' => 'https://api.yourapp.com/cleanup',
'method' => 'POST',
'cron_expression' => '0 3 * * *',
]);
// Push a one-off job
$recuro->jobs->create([
'queue' => 'emails',
'url' => 'https://api.yourapp.com/send-welcome',
'payload' => ['user_id' => 42],
]);

A Laravel-specific package with Facade support and Artisan commands is also planned.

In the meantime

The REST API works from any language. See the API reference to get started now.