PHPackages                             lkaemmerling/prometheus\_push\_gateway\_php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. lkaemmerling/prometheus\_push\_gateway\_php

Abandoned → [promphp/prometheus\_push\_gateway\_php](/?search=promphp%2Fprometheus_push_gateway_php)Library[HTTP &amp; Networking](/categories/http)

lkaemmerling/prometheus\_push\_gateway\_php
===========================================

Prometheus Push Gateway client for PHP applications.

v1.1.1(4y ago)3186[2 issues](https://github.com/PromPHP/prometheus_push_gateway_php/issues)[3 PRs](https://github.com/PromPHP/prometheus_push_gateway_php/pulls)Apache-2.0PHPPHP ^7.2|^8.0CI passing

Since Sep 21Pushed 1w ago1 watchersCompare

[ Source](https://github.com/PromPHP/prometheus_push_gateway_php)[ Packagist](https://packagist.org/packages/lkaemmerling/prometheus_push_gateway_php)[ RSS](/packages/lkaemmerling-prometheus-push-gateway-php/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (8)Versions (8)Used By (0)

A prometheus push gateway client library written in PHP
=======================================================

[](#a-prometheus-push-gateway-client-library-written-in-php)

[![Tests](https://github.com/promphp/prometheus_push_gateway_php/workflows/Tests/badge.svg)](https://github.com/promphp/prometheus_push_gateway_php/workflows/Tests/badge.svg)

This package provides an easy PHP API for Prometheus Push Gateway. It was part of [promphp/prometheus\_client\_php](https://github.com/promphp/prometheus_client_php) and was moved into a seperate package as of Prometheus Client PHP Version 2.0.0.

How does it work?
-----------------

[](#how-does-it-work)

The PushGateway allows Prometheus to get Metrics from Systems that are not scrableable (Your Prometheus cannot access that systems). With this library you can easily send your metrics to the PushGateway.

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

[](#installation)

Add as [Composer](https://getcomposer.org/) dependency:

```
composer require promphp/prometheus_push_gateway_php
```

Usage
-----

[](#usage)

Let's assume you have that simple counter and want to send it to your PushGateway.

```
\Prometheus\CollectorRegistry::getDefault()
    ->getOrRegisterCounter('', 'some_quick_counter', 'just a quick measurement')
    ->inc();

// Now send it to the PushGateway:
$pushGateway = new \PrometheusPushGateway\PushGateway('http://192.168.59.100:9091');
$pushGateway->push(\Prometheus\CollectorRegistry::getDefault(), 'my_job', ['instance' => 'foo']);
```

Also look at the [examples](examples).

Development
-----------

[](#development)

### Dependencies

[](#dependencies)

- PHP ^7.2 | ^8.0
- [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)

Black box testing
-----------------

[](#black-box-testing)

Just start the PushGateway by using docker-compose

```
docker-compose up

```

Use composer to grab all dependencies

```
docker run --rm --interactive --tty --volume $PWD:/app composer install

```

Execute the tests:

```
docker-compose run phpunit vendor/bin/phpunit tests/Test/

```

###  Health Score

42

↑

FairBetter than 89% of packages

Maintenance63

Regular maintenance activity

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~189 days

Total

4

Last Release

1489d ago

PHP version history (2 changes)v1.0.0PHP ^7.2

v1.1.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcc754aa9c84b502f0fade69790c525a42e8e898447157acce899469038bb3b1?d=identicon)[LukasKaemmerling](/maintainers/LukasKaemmerling)

---

Top Contributors

[![LKaemmerling](https://avatars.githubusercontent.com/u/4281581?v=4)](https://github.com/LKaemmerling "LKaemmerling (16 commits)")[![claude-vessaz-hs](https://avatars.githubusercontent.com/u/63114980?v=4)](https://github.com/claude-vessaz-hs "claude-vessaz-hs (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

hacktoberfestphpprometheusprometheus-phpprometheus-pushgatewaypushgateway

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lkaemmerling-prometheus-push-gateway-php/health.svg)

```
[![Health](https://phpackages.com/badges/lkaemmerling-prometheus-push-gateway-php/health.svg)](https://phpackages.com/packages/lkaemmerling-prometheus-push-gateway-php)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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