Download the PHP package illuma-law/healthcheck-stripe without Composer
On this page you can find all versions of the php package illuma-law/healthcheck-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download illuma-law/healthcheck-stripe
More information about illuma-law/healthcheck-stripe
Files in illuma-law/healthcheck-stripe
Package healthcheck-stripe
Short Description Focused stripe health check for Spatie's Laravel Health package.
License MIT
Homepage https://github.com/illuma-law/healthcheck-stripe
Informations about the package healthcheck-stripe
Healthcheck stripe for Laravel
A focused stripe health check for Spatie's Laravel Health package.
This package provides a simple, direct health check to verify that your Stripe API credentials are valid and that the Stripe API is reachable.
Features
- Connectivity Check: Verifies that your Laravel application can successfully connect to Stripe's API.
- Latency Monitoring: Measures the response time of the Stripe API. If it exceeds a threshold (1500ms), the check will degrade to a Warning state.
- Credential Validation: Ensures that your
CASHIER_SECRETorSTRIPE_SECRETis correctly configured and accepted by Stripe.
Installation
Require this package with composer:
Usage & Integration
Register the check inside your application's health service provider (e.g. AppServiceProvider or a dedicated HealthServiceProvider), alongside your other Spatie Laravel Health checks:
Basic Registration
Expected Result States
The check interacts with the Spatie Health dashboard and JSON endpoints using these states:
- Ok: Stripe API credentials are valid and the service is responsive.
- Warning: Stripe responded successfully, but the response time was higher than 1500ms.
- Failed: Stripe was unreachable, the secret key is missing, or the API returned an authentication error.
Testing
Run the test suite:
License
The MIT License (MIT). Please see License File for more information.
All versions of healthcheck-stripe with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/database Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
spatie/laravel-health Version ^1.39
stripe/stripe-php Version *