PHPackages                             menkaff/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. menkaff/metrics

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

menkaff/metrics
===============

Prometheus metric feature

v0.5(4y ago)9994MITPHPPHP ^7.1.3

Since May 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/menkaff/metrics)[ Packagist](https://packagist.org/packages/menkaff/metrics)[ RSS](/packages/menkaff-metrics/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Metric for Prometheus PHP client
================================

[](#metric-for-prometheus-php-client)

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

[](#installation)

Install via composer in Laravel or Lumen

```
composer require menkaff/metrics

```

If you have a lumen project just add this line in

> bootsratp/app.php

```
$app->register(PrometheusServiceProvider::class);

```

Finally you can copy prometheus.php file to your laravel\\lumen **config** folder and add these lines to your ***.env***

```
PROMETHEUS_NAMESPACE=
PROMETHEUS_SERVICE=main
PROMETHEUS_METRICS_ROUTE_PATH=main/metrics
PROMETHEUS_REDIS_PREFIX=PROMETHEUS_

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Total

5

Last Release

1762d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8413386?v=4)[Mehran Niknafs Kermani](/maintainers/menkaff)[@menkaff](https://github.com/menkaff)

---

Top Contributors

[![menkaff](https://avatars.githubusercontent.com/u/8413386?v=4)](https://github.com/menkaff "menkaff (31 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/menkaff-metrics/health.svg)

```
[![Health](https://phpackages.com/badges/menkaff-metrics/health.svg)](https://phpackages.com/packages/menkaff-metrics)
```

###  Alternatives

[artprima/prometheus-metrics-bundle

Symfony 5.4/6.4/7.4/8.x Prometheus Metrics Bundle

1764.1M3](/packages/artprima-prometheus-metrics-bundle)[lkaemmerling/laravel-horizon-prometheus-exporter

A small package to gain and export long time information from Laravel &amp; Horizon for Prometheus.

1622.2M](/packages/lkaemmerling-laravel-horizon-prometheus-exporter)[promphp/prometheus_push_gateway_php

Prometheus Push Gateway client for PHP applications.

312.4M6](/packages/promphp-prometheus-push-gateway-php)[arquivei/laravel-prometheus-exporter

A Prometheus exporter for Laravel and Lumen

20839.4k1](/packages/arquivei-laravel-prometheus-exporter)[mfd/typo3-prometheus

Exports Prometheus metrics for TYPO3 instances

1019.9k](/packages/mfd-typo3-prometheus)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
