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 2mo 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 3w ago

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

41

—

FairBetter than 87% of packages

Maintenance57

Moderate activity, may be stable

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

1544d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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