marko / health
Health check interfaces and infrastructure for Marko Framework
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- marko/config: 0.0.1
- marko/core: 0.0.1
- marko/routing: 0.0.1
Requires (Dev)
- marko/testing: 0.0.1
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-03-25 21:07:19 UTC
README
Production health monitoring --- exposes a /health endpoint with configurable checks for your load balancer and monitoring tools.
Installation
composer require marko/health
Quick Example
use Marko\Health\Contracts\HealthCheckInterface; use Marko\Health\Value\HealthResult; use Marko\Health\Value\HealthStatus; class RedisHealthCheck implements HealthCheckInterface { public function getName(): string { return 'redis'; } public function check(): HealthResult { return new HealthResult( name: $this->getName(), status: HealthStatus::Healthy, message: 'Redis connection successful', metadata: [], duration: 0.001, ); } }
Documentation
Full usage, API reference, and examples: marko/health