PHP Package: promphp/prometheus_client_php
Prometheus PHP library for monitoring metrics with ease, supporting a variety of metric types and export formats.
Package Description
Prometheus Client PHP is a robust library designed to facilitate metric monitoring in PHP applications. It offers support for counter, gauge, histogram, and summary metric types, enabling efficient tracking of various aspects. With seamless integration and versatile export capabilities, this library empowers developers to gain valuable insights into system performance and user behavior, promoting data-driven decision-making.
Download Latest Version: 2.14.1

Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/promphp/prometheus_client_php/2.14.1/loader.php';
require_once 'libs/promphp/prometheus_client_php_vendor/example_dependency/{lib_version}/loader.php';
use Prometheus\Client\Counter;
use Prometheus\Client\Gauge;
use Prometheus\Client\Histogram;
$obj = new Counter();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.