illuma-law / healthcheck-stripe
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!
Requires
- php: ^8.3
- illuminate/contracts: ^12.0||^13.0
- illuminate/database: ^12.0||^13.0
- illuminate/support: ^12.0||^13.0
- spatie/laravel-health: ^1.39
- spatie/laravel-package-tools: ^1.16
- stripe/stripe-php: ^16.0 || ^17.0 || ^18.0 || ^19.0 || ^20.0 || ^21.0 || ^22.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- mrpunyapal/peststan: ^0.2.12
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.1||^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.35
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-23 13:55:21 UTC
README
A Laravel Health check that calls Stripe's Balance API to verify that your credentials and API connection work.
Requirements
- PHP 8.3 or later
- Laravel 12 or 13
- Spatie Laravel Health
- A Stripe secret key
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.
