PHPackages                             messagebird/pushprom-yii2-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. messagebird/pushprom-yii2-client

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

messagebird/pushprom-yii2-client
================================

A Yii 2 client for Pushprom

1.0.2(7y ago)369.1k—10%4[1 issues](https://github.com/messagebird/pushprom-yii2-client/issues)BSD-2-ClausePHP

Since Aug 17Pushed 4y ago12 watchersCompare

[ Source](https://github.com/messagebird/pushprom-yii2-client)[ Packagist](https://packagist.org/packages/messagebird/pushprom-yii2-client)[ Docs](https://www.messagebird.com)[ RSS](/packages/messagebird-pushprom-yii2-client/feed)WikiDiscussions master Synced yesterday

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

Pushprom Yii 2 client
=====================

[](#pushprom-yii-2-client)

This is a Yii 2 client for for [Pushprom](https://github.com/messagebird/pushprom). It provides a thin layer on top of the [Pushprom PHP Client](https://github.com/messagebird/pushprom-php-client).

[![Latest Stable Version](https://camo.githubusercontent.com/0148c3688cb6f10dd10f7621857968779faac2b36bd91d34f639ac565b7a5177/68747470733a2f2f706f7365722e707567782e6f72672f6d657373616765626972642f7075736870726f6d2d796969322d636c69656e742f762f737461626c652e737667)](https://packagist.org/packages/messagebird/pushprom-yii2-client)[![License](https://camo.githubusercontent.com/05b16f00b9db284bb293aa33e198f5d96ff2d49c1e489f6e3a24d228d2ecc03d/68747470733a2f2f706f7365722e707567782e6f72672f6d657373616765626972642f7075736870726f6d2d796969322d636c69656e742f6c6963656e73652e737667)](https://packagist.org/packages/messagebird/pushprom-yii2-client)

Installing
----------

[](#installing)

You can install the Pushprom Yii 2 client through Composer by running:

```
composer require messagebird/pushprom-yii2-client:1.0.0
```

Alternatively, add this to your `composer.json`:

```
"require": {
    "messagebird/pushprom-yii2-client": "1.0.0"
}
```

And then install by running:

```
composer update messagebird/pushprom-yii2-client
```

Usage
-----

[](#usage)

In your configuration add the Pushprom component:

```
'pushprom' => [
    'class' => \pushprom\yii2\Component::className(),
    'job' => 'messagebird',
    'url' => 'udp://127.0.0.1:9090'
],
```

Create and update metrics in your code:

```
$gauge = new \pushprom\Gauge(
    \Yii::$app->pushprom,
    "fish_in_the_sea",
    "The amount of fish in the sea",
    [
        "species" => "Thalassoma noronhanum"
    ]
);
$gauge->set(2000);
```

Helpers
-------

[](#helpers)

The repository includes helpers for common tasks.

For example, we've found that logging HTTP responses and their time is something that is repeated amongst projects. `\Yii::$app->pushprom` contains helper methods to make it easier to stat them. You can use them like this:

```
$config = [
    'components' => [
        'response' => [
            // ...
            'on beforeSend' => function ($event) {
                \Yii::$app->pushprom->logHttpResponse($event->sender->getStatusCode());
                \Yii::$app->pushprom->logResponseTimeMs();
            }
        ]
    ]
];
```

License
-------

[](#license)

The Yii 2 client for Pushprom is licensed under [The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause). Copyright (c) 2016, MessageBird

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~416 days

Total

3

Last Release

2776d ago

### Community

Maintainers

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

---

Top Contributors

[![marcelcorso](https://avatars.githubusercontent.com/u/19642?v=4)](https://github.com/marcelcorso "marcelcorso (3 commits)")[![samwierema](https://avatars.githubusercontent.com/u/276453?v=4)](https://github.com/samwierema "samwierema (2 commits)")

### Embed Badge

![Health badge](/badges/messagebird-pushprom-yii2-client/health.svg)

```
[![Health](https://phpackages.com/badges/messagebird-pushprom-yii2-client/health.svg)](https://phpackages.com/packages/messagebird-pushprom-yii2-client)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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