marko/health

Health check interfaces and infrastructure for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-health

Type:marko-module

pkg:composer/marko/health

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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