Download the PHP package renoki-co/laravel-healthchecks without Composer
On this page you can find all versions of the php package renoki-co/laravel-healthchecks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download renoki-co/laravel-healthchecks
More information about renoki-co/laravel-healthchecks
Files in renoki-co/laravel-healthchecks
Package laravel-healthchecks
Short Description Laravel Healthchecks is a simple controller class that helps you build your own healthchecks endpoint without issues.
License Apache-2.0
Homepage https://github.com/renoki-co/laravel-healthchecks
Informations about the package laravel-healthchecks
Laravel Healthchecks
Laravel Healthchecks is a simple controller class that helps you build your own healthchecks endpoint without issues.
🤝 Supporting
If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with Github Sponsors. 📦
🚀 Installation
You can install the package via composer:
🙌 Usage
First of all, you should create your own Controller for healthchecks, that extends the RenokiCo\LaravelHealthchecks\Http\Controllers\HealthcheckController
.
Registering healthchecks
Within the controller, you should register the healthchecks closures in the registerHealthchecks
method, like the example stated above.
You can add as many healthchecks as you want.
Status Codes
In case of failure, the response is 500
. For all successful responses, the status code is 200
.
To change the http codes being sent out, specify this in your registerHealthchecks
method:
Outputs
By default, the output will be OK
or FAIL
as string, but in case you want to debug the healthchecks, you can get a JSON with each registered healthchecks and their pass/fail closures.
You have just to call withOutput()
:
The output in the browser would be like this:
🐛 Testing
🤝 Contributing
Please see CONTRIBUTING for details.
🔒 Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
🎉 Credits
- Alex Renoki
- All Contributors