Registry /
observability / promphp-prometheus-client-php
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CollectorRegistry
✓ use Prometheus\CollectorRegistry;
Create a counter metric and increment it.
use Prometheus\CollectorRegistry;
$registry = new CollectorRegistry(new Prometheus\Storage\InMemory());
$counter = $registry->registerCounter('app', 'requests_total', 'Total requests');
$counter->inc();
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.15.1latest on Packagist
Audit
Dependencies
No dependency data recorded yet.