spatie / laravel-health
Monitor the health of a Laravel application
Fund package maintenance!
spatie
Requires
- php: ^8.0
- dragonmantank/cron-expression: ^3.3.1
- guzzlehttp/guzzle: ^6.5|^7.4.5|^7.2
- illuminate/console: ^8.75|^9.0|^10.0|^11.0
- illuminate/contracts: ^8.75|^9.0|^10.0|^11.0
- illuminate/database: ^8.75|^9.0|^10.0|^11.0
- illuminate/notifications: ^8.75|^9.0|^10.0|^11.0
- illuminate/support: ^8.75|^9.0|^10.0|^11.0
- laravel/serializable-closure: ^1.3
- nunomaduro/termwind: ^1.0|^2.0
- spatie/enum: ^3.13
- spatie/laravel-package-tools: ^1.12.1
- spatie/regex: ^3.1.1|^3.1
- spatie/temporary-directory: ^2.2
- symfony/process: ^5.4|^6.0|^7.0
Requires (Dev)
- larastan/larastan: ^1.0.3|^2.4
- laravel/horizon: ^5.9.10
- laravel/slack-notification-channel: ^2.4|^3.2
- nunomaduro/collision: ^5.10|^6.2.1|^6.1|^8.0
- orchestra/testbench: ^6.23|^7.6|^8.0|^9.0
- pestphp/pest: ^1.21.3|^2.34
- pestphp/pest-plugin-laravel: ^1.2|^2.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1.1
- phpunit/phpunit: ^9.5.21|^9.5.10|^10.5
- spatie/laravel-ray: ^1.30
- spatie/pest-plugin-snapshots: ^1.1|^2.1
- spatie/pest-plugin-test-time: ^1.1.1|^1.1|^2.0
- spatie/test-time: ^1.3
- dev-main
- 1.30.1
- 1.30.0
- 1.29.4
- 1.29.3
- 1.29.2
- 1.29.1
- 1.29.0
- 1.28.1
- 1.28.0
- 1.27.1
- 1.27.0
- 1.26.1
- 1.26.0
- 1.25.0
- 1.24.1
- 1.24.0
- 1.23.10
- 1.23.9
- 1.23.8
- 1.23.7
- 1.23.6
- 1.23.5
- 1.23.4
- 1.23.2
- 1.23.1
- 1.23.0
- 1.22.7
- 1.22.6
- 1.22.5
- 1.22.4
- 1.22.3
- 1.22.2
- 1.22.1
- 1.22.0
- 1.21.0
- 1.20.1
- 1.20.0
- 1.19.0
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18.0
- 1.17.0
- 1.16.3
- 1.16.2
- 1.16.1
- 1.16.0
- 1.15.2
- 1.15.1
- 1.15.0
- 1.14.6
- 1.14.5
- 1.14.4
- 1.14.3
- 1.14.2
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.1
- 1.11.0
- 1.10.1
- 1.10.0
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.14
- 1.7.13
- 1.7.12
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.2
- 0.9.1
- 0.9.0
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
This package is auto-updated.
Last update: 2024-11-14 10:53:21 UTC
README
Using this package you can monitor the health of your application by registering checks.
Here's an example where we'll monitor available disk space.
// typically, in a service provider use Spatie\Health\Facades\Health; use Spatie\Health\Checks\Checks\UsedDiskSpaceCheck; Health::checks([ UsedDiskSpaceCheck::new() ->warnWhenUsedSpaceIsAbovePercentage(70) ->failWhenUsedSpaceIsAbovePercentage(90), ]);
When the used disk space is over 70%, then a notification with a warning will be sent. If it's above 90%, you'll get an error notification. Out of the box, the package can notify you via mail and Slack.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Documentation
All documentation is available on our documentation site.
Alternatives
If you don't like our package, do try out one of these alternatives:
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.