Registry / observability / promphp-prometheus-client-php

promphp-prometheus-client-php

JSON →
library2.15.1phppackagistunverified

Prometheus instrumentation library for PHP applications.

composer require promphp/prometheus_client_php
INSTALL
IMPORT
SIG · PROMPHP-PROMETHEUS
P
promphp-prometheus-client-php
observabilityphpv2.15.1
harness data pending
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.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
2
Resources
promphp-prometheus-client-php — pip install promphp-prometheus-client-php · libregistry