PHP SDK and runner for Checkrail API flow checks.

Maintainers

Package info

github.com/marcusmensing/checkrail-php-sdk

Homepage

Issues

pkg:composer/checkrail/sdk

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.0 2026-04-25 15:01 UTC

This package is auto-updated.

Last update: 2026-04-25 15:36:03 UTC


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