PHPackages                             wyrihaximus/metrics - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. wyrihaximus/metrics

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

wyrihaximus/metrics
===================

🕵️‍♀️ Prometheus modelled metric VO's and registry

3.0.0(1y ago)4224.7k↑1211.4%1[1 issues](https://github.com/WyriHaximus/php-metrics/issues)[1 PRs](https://github.com/WyriHaximus/php-metrics/pulls)10MITMakefilePHP ^8.3CI failing

Since Nov 15Pushed 5d ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/php-metrics)[ Packagist](https://packagist.org/packages/wyrihaximus/metrics)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-metrics/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (4)Versions (11)Used By (10)

Metrics
=======

[](#metrics)

[![Continuous Integration](https://github.com/wyrihaximus/php-metrics/workflows/Continuous%20Integration/badge.svg)](https://github.com/wyrihaximus/php-metrics/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/da740d27c8cc1b430f4fdc40ea9efa36122aec2b9081a60770a670341fc5df62/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6d6574726963732f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/metrics)[![Total Downloads](https://camo.githubusercontent.com/5196e9abe7c783de1863c67ea232c0a5cb2bc7492fb2a1c343e07ec861537fe4/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6d6574726963732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wyrihaximus/metrics/stats)[![Type Coverage](https://camo.githubusercontent.com/43268a19553503cbecc1157e13549ca254c7afc1a4fa31b24ba1059d070a8a58/68747470733a2f2f73686570686572642e6465762f6769746875622f57797269486178696d75732f7068702d6d6574726963732f636f7665726167652e737667)](https://shepherd.dev/github/WyriHaximus/php-metrics)[![License](https://camo.githubusercontent.com/f2c8181e61a29a244a40d1472f173dc299ff845bfcddddfc0f79651c6515a1d9/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6d6574726963732f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/metrics)

Installation
============

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/metrics

```

Usage
=====

[](#usage)

This package ships with an in-memory registry that can be created using the `Factory`:

```
