promphp/prometheus_client_php
Prometheus client library for PHP with Redis or APCu-based aggregation (plus in-memory adapter). Register and update counters, gauges, histograms, and summaries via CollectorRegistry, then expose metrics in Prometheus text format for scraping.
promphp/prometheus_client_php is a Prometheus client library for PHP that supports client-side aggregation via Redis or APCu (plus Predis, APCng, and in-memory). It’s designed for typical PHP worker models where processes don’t share state, enabling consistent metrics across requests when backed by a shared store.
Use CollectorRegistry to register or fetch Counters, Gauges, Histograms, and Summaries, then render and expose metrics in the Prometheus text format.
getOrRegister* API for common metric typesHow can I help you explore Laravel packages today?