checkrail / sdk
PHP SDK and runner for Checkrail API flow checks.
v0.1.0
2026-04-25 15:01 UTC
Requires
- php: >=8.1
README
Define critical API flows in PHP and run them locally or in CI.
<?php use function Checkrail\flow; flow('signup', [ 'severity' => 'P0', 'blocking' => true, ], function ($checkrail) { $user = $checkrail->api()->post('/users', [ 'email' => $checkrail->ctx()->uniqueEmail(), ]); $checkrail->expect($user['id'] ?? null)->toBeDefined(); });
Run:
CHECKRAIL_API_KEY=cr_... CHECKRAIL_INGEST_URL=https://api.checkrail.io CHECKRAIL_BASE_URL=https://staging.example.com vendor/bin/checkrail run