PHPackages                             package-of-yii/pusher - 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. package-of-yii/pusher

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

package-of-yii/pusher
=====================

The Pusher wrapper for Yii2.

15PHP

Since Jan 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/package-of-yii/pusher)[ Packagist](https://packagist.org/packages/package-of-yii/pusher)[ RSS](/packages/package-of-yii-pusher/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
------------

[](#introduction)

A pusher extension for Yii2.

A maintained, restructured and reorganized version of [yii2-pusher](https://github.com/br0sk/yii2-pusher)

Makes Pusher integration easier with Yii2.

Official Documentation
----------------------

[](#official-documentation)

Add this config to your configuration file.

```
'pusher' => [
    'class' => 'POYii\Pusher\Pusher',
    'appId' => 'YOUR_APP_ID',
    'appKey' => 'YOUR_APP_KEY',
    'appSecret' => 'YOUR_APP_SECRET',
    'options' => ['encrypted' => true, 'cluster' => 'YOUR_APP_CLUSTER']
],

```

You can go to [Pusher Dashboard](https://dashboard.pusher.com/) and create a new app if not created. Add appID, appKey, appSecret and appCluster to the above configuration.

Typical Example of usage:

Php:

```
Yii::$app->pusher->push('my-channel', 'my_event', 'hello world');

```

Frontend:

```

  Pusher Test

    // Enable pusher logging - don't include this in production
    Pusher.logToConsole = true;

    var pusher = new Pusher('YOUR_APP_KEY', {
      cluster: 'eu',
      forceTLS: true
    });

    var channel = pusher.subscribe('my-channel');
    channel.bind('my-event', function(data) {
      alert(JSON.stringify(data));
    });

  Pusher Test

    Try publishing an event to channel my-channel
    with event name my-event.

```

License
-------

[](#license)

Package Of Yii Pusher software is licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d46fb8b473d604d2f5eb4e27451ef88b44e10a430c0a0ce89b4e501fcfe95b2?d=identicon)[pralhad](/maintainers/pralhad)

---

Top Contributors

[![pralhadstha](https://avatars.githubusercontent.com/u/6309194?v=4)](https://github.com/pralhadstha "pralhadstha (8 commits)")

### Embed Badge

![Health badge](/badges/package-of-yii-pusher/health.svg)

```
[![Health](https://phpackages.com/badges/package-of-yii-pusher/health.svg)](https://phpackages.com/packages/package-of-yii-pusher)
```

###  Alternatives

[chh/pipe

Put your assets into the Pipe and smoke them.

1212.5k1](/packages/chh-pipe)

PHPackages © 2026

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