PHPackages                             jtl/go-prometrics-client - 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. jtl/go-prometrics-client

ActiveJtl-library[Utility &amp; Helpers](/categories/utility)

jtl/go-prometrics-client
========================

PHP-Client to use the JTL GoPrometrics Service

3.2.0(8mo ago)031.1k↑175%[5 PRs](https://github.com/jtl-software/goprometrics-client/pulls)1MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI passing

Since Apr 16Pushed 8mo ago4 watchersCompare

[ Source](https://github.com/jtl-software/goprometrics-client)[ Packagist](https://packagist.org/packages/jtl/go-prometrics-client)[ RSS](/packages/jtl-go-prometrics-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (34)Used By (1)

JTL/GoPrometrics Client
=======================

[](#jtlgoprometrics-client)

[![Build and Unit Testing](https://github.com/jtl-software/goprometrics-client/workflows/UnitTesting/badge.svg?branch=master)](https://github.com/jtl-software/goprometrics-client/workflows/UnitTesting/badge.svg?branch=master)[![](https://camo.githubusercontent.com/fc9d9f7bfc0fe26c24e905b1565ce142c579db3245f571f709864988c1732435/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a746c2d736f6674776172652f676f70726f6d6574726963732d636c69656e74)](https://camo.githubusercontent.com/fc9d9f7bfc0fe26c24e905b1565ce142c579db3245f571f709864988c1732435/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a746c2d736f6674776172652f676f70726f6d6574726963732d636c69656e74)

Usage
=====

[](#usage)

This library use [semantic visioning](http://semver.org/). You can use composer to install `jtl/go-prometrics-client` in your project.

Counter
-------

[](#counter)

```
//simple counter
$counter = new Counter(new Client(), "http://127.0.0.1:9111");
$counter->counter('BEER', 'BITBURGER');

//counter with labels
$labelList = new LabelList();
$labelList->add(new Label('type', 'Pils'));
$labelList->add(new Label('alc', '4.8'));
$counter = new Counter(new Client(), "http://127.0.0.1:9111");
$counter->counter('BEER', 'BITBURGER', $labelList);

//counter with labels and help text
$counter->counter('BEER', 'BITBURGER', $labelList, 'It could help');
```

Histogram
---------

[](#histogram)

```
//simple histogramm
$bucketList = [0.1, 0.5, 1.0, 5.0];
$histogram = new Histogram(new Client(), "http://127.0.0.1:9111");
$histogram->observe('BEER', 'BITBURGER', 0.33, $bucketList);

//histogramm with labels
$labelList = new LabelList();
$labelList->add(new Label('type', 'Pils'));
$labelList->add(new Label('alc', '4.8'));
$histogram = new Histogram(new Client(), "http://127.0.0.1:9111");
$histogram->observe('BEER', 'BITBURGER', 0.33, $bucketList , $labelList);

//histogramm with labels and help text
$histogram->observe('BEER', 'BITBURGER', 0.33, $bucketList, $labelList, 'It could help');
```

Gauge
-----

[](#gauge)

```
//simple gauge
$gauge = new Gauge(new Client(), "http://127.0.0.1:9111");
$gauge->inc('BEER', 'BITBURGER'); // Increase by one
$gauge->dec('BEER', 'BITBURGER'); // Decrease by one

$gauge->set('BEER', 'BITBURGER', 3); // Set value to three
$gauge->incBy('BEER', 'BITBURGER', 3); // Increase by three
$gauge->decBy('BEER', 'BITBURGER', 3); // Decrease by three

//gauge with labels
$labelList = new LabelList();
$labelList->add(new Label('type', 'Pils'));
$labelList->add(new Label('alc', '4.8'));
$gauge = new Gauge(new Client(), "http://127.0.0.1:9111");
$gauge->inc('BEER', 'BITBURGER', $labelList);
$gauge->dec('BEER', 'BITBURGER', $labelList);

$gauge->set('BEER', 'BITBURGER', 3, $labelList);
$gauge->incBy('BEER', 'BITBURGER', 2, $labelList);
$gauge->decBy('BEER', 'BITBURGER', 2, $labelList);

//gauge with labels and help text
$gauge->inc('BEER', 'BITBURGER', $labelList, 'It could help');
$gauge->dec('BEER', 'BITBURGER', $labelList, 'It could help');

$gauge->set('BEER', 'BITBURGER', 3, $labelList, 'It could help');
$gauge->incBy('BEER', 'BITBURGER', 3, $labelList, 'It could help');
$gauge->decBy('BEER', 'BITBURGER', 3, $labelList, 'It could help');
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance59

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~115 days

Recently: every ~196 days

Total

18

Last Release

258d ago

Major Versions

0.5.0 → 1.0.02020-05-13

1.2.0 → 2.0.02022-01-14

2.1.0 → 3.0.02023-11-30

PHP version history (7 changes)0.1.0PHP &gt;=7.4

1.1.0PHP ^7.4 | ^8.0

2.0.0PHP ^8.0

2.1.0PHP ^8.1

3.0.0PHP ^8.2

3.1.0PHP ^8.2 || ^8.3 || ^8.4

3.2.0PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/301782761df83e7af1629dc65f40b2963c0f91e2d56bbace84336d89187adb29?d=identicon)[jtlgmbh](/maintainers/jtlgmbh)

![](https://www.gravatar.com/avatar/38c22ffd540333580cddea1fb869a3f32e5ffd1cadc4b06e84eb2f01658ce961?d=identicon)[eazyAuctionDev](/maintainers/eazyAuctionDev)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (19 commits)")[![Das-Ente](https://avatars.githubusercontent.com/u/20517536?v=4)](https://github.com/Das-Ente "Das-Ente (16 commits)")[![sleipi](https://avatars.githubusercontent.com/u/1415186?v=4)](https://github.com/sleipi "sleipi (11 commits)")[![BrandtM](https://avatars.githubusercontent.com/u/20184278?v=4)](https://github.com/BrandtM "BrandtM (10 commits)")[![milanowicz](https://avatars.githubusercontent.com/u/1786103?v=4)](https://github.com/milanowicz "milanowicz (8 commits)")[![JTLMarggx](https://avatars.githubusercontent.com/u/227163495?v=4)](https://github.com/JTLMarggx "JTLMarggx (3 commits)")[![spopp-jtl](https://avatars.githubusercontent.com/u/169648597?v=4)](https://github.com/spopp-jtl "spopp-jtl (1 commits)")[![b-water](https://avatars.githubusercontent.com/u/5053969?v=4)](https://github.com/b-water "b-water (1 commits)")[![drieschel](https://avatars.githubusercontent.com/u/852291?v=4)](https://github.com/drieschel "drieschel (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jtl-go-prometrics-client/health.svg)

```
[![Health](https://phpackages.com/badges/jtl-go-prometrics-client/health.svg)](https://phpackages.com/packages/jtl-go-prometrics-client)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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