vesh95 / heartbeat
Healthcheck and monitoring interfaces for PHP applications
1.0.0
2025-07-01 19:21 UTC
Requires
- php: >=8.0
Requires (Dev)
- phpunit/phpunit: ^12.2
This package is auto-updated.
Last update: 2025-07-02 07:53:22 UTC
README
Php-pulse is a library for PHP that provides a set of interfaces for healthcheck and monitoring.
Installation
To install Php-pulse, run the following command:
composer require vesh95/heartbeat
Usage
To use Php-pulse, create a new instance of the HealthcheckRunner
class and add checks to it. Then, run the checks by
calling the run()
method.
use Vesh95\Heartbeat\HealthcheckRunner; use Vesh95\Heartbeat\Check\CheckInterface; $runner = new HealthcheckRunner(); $runner->append(new CheckInterface()); $results = $runner->run();
The run()
method returns a ResultsCollection
object that contains the results of the checks.
Contributing
Contributions are welcome. Please see the contributing guide for more information.
License
Php-pulse is licensed under the MIT License. See the license file for more information.