Download the PHP package nordsec/status-checker without Composer
On this page you can find all versions of the php package nordsec/status-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nordsec/status-checker
More information about nordsec/status-checker
Files in nordsec/status-checker
Package status-checker
Short Description A library for implementing status checks
License MIT
Informations about the package status-checker
Status checker
Description
A library that tells you if any external service your app relies on is broken.
Extremely useful for:
- Creating a command that will show whether the app is ok after deployment
- Creating a status page for your system admins or monitoring software
Requirements
- PHP >=7.4 || >=8.0
Usage
CLI
-
Install the library
-
Declare an instance for StatusCheckerService (preferably using a container), pass various status checkers that make sense for your project
-
If needed, register the command with your application
- Run the command
WEB
-
Install the library
-
Declare an instance for StatusCheckerService (preferably using a container), pass various status checkers that make sense for your project
-
Create an instance of your controller (preferably using a container)
-
Add needed routes
- Access the above routes via your browser
/statusproduces the overall (global) status- if all services produce an
OKstatus it will output{"status":"OK"} - if any service fails it will output
{"status":"FAIL"} - if any service is in maintenance it will output
{"status":"MAINTENANCE"}
- if all services produce an
/status/detailsproduces more detailed output about the status of every individual service
All versions of status-checker with dependencies
psr/http-message Version ^1.0
php Version ^7.4 || ^8.0
ext-json Version *