PHPackages                             jackiedo/laravel-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. [HTTP &amp; Networking](/categories/http)
4. /
5. jackiedo/laravel-pusher

ActiveLibrary[HTTP &amp; Networking](/categories/http)

jackiedo/laravel-pusher
=======================

A Pusher bridge for Laravel 5+

1.0.3(9y ago)04911MITPHPPHP &gt;=5.5.9

Since Mar 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/JackieDo/Laravel-Pusher)[ Packagist](https://packagist.org/packages/jackiedo/laravel-pusher)[ RSS](/packages/jackiedo-laravel-pusher/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (7)Versions (6)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/ddc99f716f7c1f2929567b12fe3ab529fe78d443fc595a6a68c4b7f4e5e91702/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6965646f2f6c61726176656c2d7075736865722f762f737461626c65)](https://packagist.org/packages/jackiedo/laravel-pusher)[![Total Downloads](https://camo.githubusercontent.com/a759bd5b6232e1c39c43472b922e8935e2312cb50ffc87559b8199a7e8fa21ae/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6965646f2f6c61726176656c2d7075736865722f646f776e6c6f616473)](https://packagist.org/packages/jackiedo/laravel-pusher)[![Latest Unstable Version](https://camo.githubusercontent.com/64dac68370eee7a4a7d6605f00af3284808debd48b9378b9eaf276d0c7fa0cf5/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6965646f2f6c61726176656c2d7075736865722f762f756e737461626c65)](https://packagist.org/packages/jackiedo/laravel-pusher)[![License](https://camo.githubusercontent.com/962dec64fdd3960fa48916fca846e7674163764749cc1b66ad7456b4c1727b60/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6965646f2f6c61726176656c2d7075736865722f6c6963656e7365)](https://packagist.org/packages/jackiedo/laravel-pusher)

Description
===========

[](#description)

Laravel Pusher is a [Pusher](https://pusher.com/) bridge for Laravel from version 5.1 to 5.4 using [the Official Pusher package](https://github.com/pusher/pusher-http-php).

This package is forked from [vinkla/laravel-pusher](https://github.com/vinkla/laravel-pusher) package for supporting Laravel 5.4 using php version earlier 7.x

Overview
========

[](#overview)

Look at one of the following topics to learn more about Laravel Pusher.

- [Installation](#installation)
- [Configuration](#configuration)
    - [Default Connection Name](#default-connection-name)
    - [Pusher Connections](#pusher-connections)
- [Usage](#usage)
    - [PusherManager](#pushermanager)
    - [Pusherer facade](#pusherer-facade)
    - [PusherServiceProvider](#pusherserviceprovider)
    - [Examples](#examples)
- [Official Documentation](#official-documentation)

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

[](#installation)

- First, require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
$ composer require jackiedo/laravel-pusher
```

- Once update operation completes, the second step is add the service provider. Open `config/app.php`, and add a new item to the providers array:

```
...
'providers' => array(
    ...
    Jackiedo\LaravelPusher\PusherServiceProvider::class,
),
```

- The third step is add the follow line to the section `aliases` in file `config/app.php`:

```
'Pusherer' => Jackiedo\LaravelPusher\Facades\Pusherer::class,
```

Configuration
-------------

[](#configuration)

Laravel Pusher requires connection configuration. To get started, you'll need to publish configuration file:

```
$ php artisan vendor:publish --provider="Jackiedo\LaravelPusher\PusherServiceProvider" --tag="config"
```

This will create a `config/pusher.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

#### Default Connection Name

[](#default-connection-name)

This option `default` is where you may specify which of the connections below you wish to use as your default connection for all work. Of course, you may use many connections at once using the manager class. The default value for this setting is `main`.

#### Pusher Connections

[](#pusher-connections)

This option `connections` is where each of the connections are setup for your application. Example configuration has been included, but you may add as many connections as you would like.

Usage
-----

[](#usage)

#### PusherManager

[](#pushermanager)

This is the class of most interest. It is bound to the ioc container as `pusher` and can be accessed using the `Facades\Pusherer` facade. This class implements the ManagerInterface by extending AbstractManager. The interface and abstract class are both part of [Graham Campbell's](https://github.com/GrahamCampbell) [Laravel Manager](https://github.com/GrahamCampbell/Laravel-Manager) package, so you may want to go and checkout the docs for how to use the manager class over at that repository. Note that the connection class returned will always be an instance of `Pusher`.

#### Pusherer facade

[](#pusherer-facade)

This facade will dynamically pass static method calls to the `pusher` object in the ioc container which by default is the `PusherManager` class.

#### PusherServiceProvider

[](#pusherserviceprovider)

This class contains no public methods of interest. This class should be added to the providers array in `config/app.php`. This class will setup ioc bindings.

#### Examples

[](#examples)

Here you can see an example of just how simple this package is to use. Out of the box, the default adapter is `main`. After you enter your authentication details in the config file, it will just work:

```
Pusherer::trigger('my-channel', 'my-event', ['message' => $message]);
// We're done here - how easy was that, it just works!

Pusherer::getSettings();
// This example is simple and there are far more methods available.
```

The Pusher manager will behave like it is a `Pusher`. If you want to call specific connections, you can do that with the connection method:

```
// Writing this…
Pusherer::connection('main')->log('They see me logging…');

// …is identical to writing this
Pusherer::log('They hatin…');

// and is also identical to writing this.
Pusherer::connection()->log('Tryin to catch me testing dirty…');

// This is because the main connection is configured to be the default.
Pusherer::getDefaultConnection(); // This will return main.

// We can change the default connection.
Pusherer::setDefaultConnection('alternative'); // The default is now alternative.
```

If you prefer to use dependency injection over facades like me, then you can inject the manager:

```
use Jackiedo\LaravelPusher\PusherManager;

class Foo
{
    protected $pusher;

    public function __construct(PusherManager $pusher)
    {
        $this->pusher = $pusher;
    }

    public function bar()
    {
        $this->pusher->trigger('my-channel', 'my-event', ['message' => $message]);
    }
}

App::make('Foo')->bar();
```

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

[](#official-documentation)

There are other classes in this package that are not documented here. This is because the package is a Laravel wrapper of [the Official Pusher package](https://github.com/pusher/pusher-http-php).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 89.6% 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 ~13 days

Total

5

Last Release

3331d ago

### Community

Maintainers

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

---

Top Contributors

[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (129 commits)")[![JackieDo](https://avatars.githubusercontent.com/u/9862115?v=4)](https://github.com/JackieDo "JackieDo (11 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (3 commits)")[![ReadmeCritic](https://avatars.githubusercontent.com/u/15367484?v=4)](https://github.com/ReadmeCritic "ReadmeCritic (1 commits)")

---

Tags

laravelpusherrealtimehttpapilaravelresteventspublishpusherphp-pusher-serverrealtimetrigger

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

401509.5k4](/packages/pusher-pusher-http-laravel)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k102.4M333](/packages/pusher-pusher-php-server)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[zfr/zfr-pusher

PHP library for interacting with the Pusher REST API

2112.7k1](/packages/zfr-zfr-pusher)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

162.0k](/packages/laragear-api-manager)

PHPackages © 2026

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