Download the PHP package gupalo/prometheus-helper without Composer
On this page you can find all versions of the php package gupalo/prometheus-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package prometheus-helper
Prometheus Helper
Wrapper for PHP Prometheus library - https://github.com/PromPHP/prometheus_client_php
Install
composer require gupalo/prometheus-helper
Usage
Basic Usage
With Redis Storage (DSN)
Supported DSN formats:
redis://redis- simple hostnameredis://redis:6380- with portredis://:password@redis:6379- with passwordredis://user:password@redis:6379/2- with user, password and databaseredis://redis:6379/0?timeout=0.5&persistent=true- with options
Symfony Integration
Configure in config/services.yaml:
Then inject in your services:
Also see tests for more examples.
Migration from v1 to v2
Ask Claude:
Or do it manually:
- update
config/services.yaml- add code from "Symfony Integration" section above - change all
use Gupalo\PrometheusHelper\PrometheusHelper;touse Gupalo\PrometheusHelper\Prometheus; - add to constructor
private readonly Prometheus $prometheus, - change all
PrometheusHelper::to$this->prometheus->
All versions of prometheus-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
ext-json Version *
gupalo/json Version *
promphp/prometheus_client_php Version ^2.14
symfony/http-foundation Version ^6.4|^7.4|^8.0
ext-json Version *
gupalo/json Version *
promphp/prometheus_client_php Version ^2.14
symfony/http-foundation Version ^6.4|^7.4|^8.0
The package gupalo/prometheus-helper contains the following files
Loading the files please wait ...