PHPackages                             mhndev/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. mhndev/pusher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mhndev/pusher
=============

single interface for using multiple pusher service

1.1.1(9y ago)32321MITPHPPHP &gt;=5.4.0

Since Feb 15Pushed 9y ago3 watchersCompare

[ Source](https://github.com/mhndev/pusher)[ Packagist](https://packagist.org/packages/mhndev/pusher)[ Docs](http://github.com/mhndev/pusher)[ RSS](/packages/mhndev-pusher/feed)WikiDiscussions develop Synced 2d ago

READMEChangelogDependencies (10)Versions (5)Used By (0)

Single Interface Multiple Pusher Service
========================================

[](#single-interface-multiple-pusher-service)

single interface for using multiple pusher service

### Included Service

[](#included-service)

- FCM
- GCM
- Nginx Push Stream Module
- Pubnub.com
- Pusher.com

### Sample Usage

[](#sample-usage)

```
use mhndev\pusher\PusherFactory;

require 'vendor/autoload.php';

$httpClient = new \GuzzleHttp\Client();

$message = new \mhndev\pusher\Message([
    'name'   => 'majid',
    'family' => 'abdolhosseini',
    'age'    => 25
]);

//send message using pusher.com service
$pusherDotComService = PusherFactory::createPusher(
    PusherFactory::PUSHER_PUSHERDOTCOM,
    ['app_key', 'app_secret', 'app_id', []]
);
$pusherDotComService->push($message, 'device1');

//send message using pubnub.com service
$pubnub = PusherFactory::createPusher(
    PusherFactory::PUSHER_PUBNUB,
    ['public_key', 'subscribe_key', 'secret_key']
);
$pubnub->push($message, 'device1');

//send message using FCM service
$fcm = PusherFactory::createPusher(
    PusherFactory::PUSHER_FCM,
    ['api_key', $httpClient]
);
$fcm->push($message, 'device1');

//send message using GCM service
$gcm = PusherFactory::createPusher(
    PusherFactory::PUSHER_GCM,
    ['api_key']
);
$gcm->push($message, 'device1');

//send message using nginx push stream module
$nginx = PusherFactory::createPusher(
    PusherFactory::PUSHER_NGINXMODULE,
    [$httpClient, 'http://example.com:8000']
);
$nginx->push($message, 'device1');
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

3419d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c3e5d182214e2e6b989a2230bcae80b2107b088da1c6dbea6f6f8d28702e272?d=identicon)[majidphpdeveloper](/maintainers/majidphpdeveloper)

---

Top Contributors

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

---

Tags

messagingpush-notificationspushergcmFCMpusherpubnubPusher.comNginx PushStream Module

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mhndev-pusher/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[jetsung/pusher

A message push extension.

168.8k](/packages/jetsung-pusher)

PHPackages © 2026

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