Search by

illuma-law / healthcheck-stripe

miguelenes

Focused stripe health check for Spatie's Laravel Health package.

Package info

github.com/eloquage/healthcheck-stripe

Language:Blade

pkg:composer/illuma-law/healthcheck-stripe

Fund package maintenance!

illuma-law

Statistics

Installs: 64

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.1.5 2026-10-23 13:55 UTC

README

Tests Latest Version License

Stripe connectivity health check illustration

A Laravel Health check that calls Stripe's Balance API to verify that your credentials and API connection work.

Requirements

Install

composer require illuma-law/healthcheck-stripe

Configure

Set either CASHIER_SECRET when using Laravel Cashier or STRIPE_SECRET for this package's own configuration:

STRIPE_SECRET=sk_test_...

The check uses cashier.secret first and falls back to healthcheck-stripe.secret.

Use

Register the check with your Laravel Health checks:

use IllumaLaw\HealthCheckStripe\StripeConnectivityCheck;
use Spatie\Health\Facades\Health;

Health::checks([
    StripeConnectivityCheck::new(),
]);

The check retrieves the account balance. Missing credentials or a Stripe API error produce a failed result. A successful response taking longer than 1500 ms produces a warning; faster responses are healthy.

Tests

composer install
composer test
composer analyse

License

MIT. See LICENSE.md.