PHPackages                             danog/better-prometheus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. danog/better-prometheus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

danog/better-prometheus
=======================

A better Prometheus library for PHP applications

0.1.1(2y ago)13179.5k—0.1%2Apache-2.0PHPPHP &gt;=8.1

Since May 3Pushed 2y ago2 watchersCompare

[ Source](https://github.com/danog/better-prometheus)[ Packagist](https://packagist.org/packages/danog/better-prometheus)[ GitHub Sponsors](https://github.com/danog)[ RSS](/packages/danog-better-prometheus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (2)

better-prometheus
=================

[](#better-prometheus)

[![Psalm coverage](https://camo.githubusercontent.com/d995907b3fe458bc84871cf49104955664d30d65310c7a7557b6f16132837235/68747470733a2f2f73686570686572642e6465762f6769746875622f64616e6f672f6265747465722d70726f6d6574686575732f636f7665726167652e737667)](https://shepherd.dev/github/danog/better-prometheus)[![Psalm level 1](https://camo.githubusercontent.com/ba36b13c061c12c00c6b79f5184206a5765de1ae3c39f35edbf0f83387e9e3a6/68747470733a2f2f73686570686572642e6465762f6769746875622f64616e6f672f6265747465722d70726f6d6574686575732f6c6576656c2e737667)](https://shepherd.dev/github/danog/better-prometheus)[![License](https://camo.githubusercontent.com/0dac21eec19516a81ed351e4c437f0968fbb584f688f6871ec20faa6197fe78f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64616e6f672f6265747465722d70726f6d6574686575733f76)](https://camo.githubusercontent.com/0dac21eec19516a81ed351e4c437f0968fbb584f688f6871ec20faa6197fe78f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64616e6f672f6265747465722d70726f6d6574686575733f76)

A better Prometheus library for PHP applications.

Offers a modern, clean PHP 8.1 API, with support for **default label values**, based on and compatible with the original `promphp/prometheus_client_php` library.

Installation
------------

[](#installation)

```
composer require danog/better-prometheus
```

Usage
-----

[](#usage)

```
