Download the PHP package jmrashed/laravel-health-check without Composer
On this page you can find all versions of the php package jmrashed/laravel-health-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jmrashed/laravel-health-check
More information about jmrashed/laravel-health-check
Files in jmrashed/laravel-health-check
Package laravel-health-check
Short Description Advanced Laravel package for health check and performance monitoring
License MIT
Informations about the package laravel-health-check
Laravel Health Check
Advanced Laravel package for health check and performance monitoring.
Table of Contents
- Installation
- Usage
- Configuration
- Running Health Checks
- Logging Health Checks
- Notifications
- Middleware
- Testing
- Contributing
- License
Installation
You can install the package via Composer:
After installing, publish the configuration file:
Usage
Configuration
Modify the configuration file located at config/health-check.php
to customize your health check settings.
Running Health Checks
You can run health checks manually using the command:
You can also set up a scheduled command to automate this.
Logging Health Checks
Health check results are logged in the database. You can view logs by visiting:
This will display all the health check logs for monitoring and debugging.
Notifications
Set up notifications to get alerted when a health check fails. Notifications can be configured in the HealthCheckNotification
class.
Middleware
You can apply the health check middleware to your routes to ensure they are always monitored:
Testing
Run the tests using PHPUnit:
Make sure to set up your testing environment according to Laravel’s testing guidelines.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
This package is licensed under the MIT License. See the LICENSE file for details.