PHPackages                             nexwap/pusher-http-laravel - 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. nexwap/pusher-http-laravel

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

nexwap/pusher-http-laravel
==========================

\[DEPRECATED\] A Pusher bridge for Laravel

v4.2.4(5y ago)09MITPHPPHP ^7.0

Since Feb 9Pushed 5y agoCompare

[ Source](https://github.com/jihwan-modoo/pusher-http-laravel)[ Packagist](https://packagist.org/packages/nexwap/pusher-http-laravel)[ RSS](/packages/nexwap-pusher-http-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (8)Versions (22)Used By (0)

DEPRECATED
==========

[](#deprecated)

Laravel now has [built-in support for Pusher Channels](https://laravel.com/docs/master/broadcasting). This is now the recommended approach to integrate Channels into a Laravel project.

Currently, Pusher will continue to review any PRs and solve security vulnerabilities in this SDK, but will not be making any major improvements going forward.

Pusher Channels Laravel Library
===============================

[](#pusher-channels-laravel-library)

A [Pusher Channels](https://github.com/pusher/pusher-http-php) bridge for Laravel. Formerly `vinkla/pusher`.

```
// Triggering events.
$pusher->trigger('my-channel', 'my_event', 'hello world');

// Authenticating Private channels.
$pusher->socket_auth('my-channel', 'socket_id');

// Want to use the facade?
Pusher::get('/channels');
```

[![Build Status](https://camo.githubusercontent.com/20db12d58e4b7fcfe004a95f80ef694c3f1cfdd4eb7db7f568a0fef4c7313c19/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7075736865722f7075736865722d687474702d6c61726176656c2f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/pusher/pusher-http-laravel)[![StyleCI](https://camo.githubusercontent.com/d3906e725154f93f54500a35bc89fdc9ef688866ec4f5f2a2b350f8137cc8dd0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f33303530383730322f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://github.styleci.io/repos/30508702)[![Coverage Status](https://camo.githubusercontent.com/995e7c36f903c0412d40e1677b43324e4aae3669476c3e57de55023216027a0c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7075736865722f7075736865722d687474702d6c61726176656c2e7376673f7374796c653d666c6174)](https://codecov.io/github/pusher/pusher-http-laravel)[![Latest Version](https://camo.githubusercontent.com/8ae891f2f0c6dc0a37d869a6005fa02dab644c319a7c5142561941b192be2586/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7075736865722f7075736865722d687474702d6c61726176656c2e7376673f7374796c653d666c6174)](https://github.com/pusher/pusher-http-laravel/releases)[![License](https://camo.githubusercontent.com/d14191cdcce23b29a2567e049ef4bd9de9827438efaf2f10f2d81c6a419abaf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7075736865722f7075736865722d687474702d6c61726176656c2e7376673f7374796c653d666c6174)](https://packagist.org/packages/pusher/pusher-http-laravel)

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

[](#installation)

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

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

Add the service provider to `config/app.php` in the `providers` array. If you're using Laravel 5.5 or greater, there's no need to do this.

```
Pusher\Laravel\PusherServiceProvider::class
```

If you want you can use the [facade](http://laravel.com/docs/facades). Add the reference in `config/app.php` to your aliases array.

```
'Pusher' => Pusher\Laravel\Facades\Pusher::class
```

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

[](#configuration)

The Laravel Channels SDK requires connection configuration. To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish --provider="Pusher\Laravel\PusherServiceProvider"
```

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`.

#### Channels Connections

[](#channels-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.

#### Encrypted Channels

[](#encrypted-channels)

To enable [end to end encrypted channels](https://pusher.com/docs/client_api_guide/client_encrypted_channels), you need to uncomment a line from the Channels config file

```
'app_id' => env('APP_ID'),
'options' => [
    'cluster' => env('APP_CLUSTER'),
    'encryption_master_key' => env('ENCRYPTION_MASTER_KEY'),
],
'host' => null,
'port' => null,

```

Then you need to set an `encryption_master_key` in your `.env` file. You should then be able to publish encrypted events to channels prefixed with `private-encrypted` and you can validate this is working by checking the (dashboard)\[\] debug console for your app!

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\Pusher` 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`.

#### Facades\\Pusher

[](#facadespusher)

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:

```
// You can alias this in config/app.php.
use Pusher\Laravel\Facades\Pusher;

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

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

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

```
use Pusher\Laravel\Facades\Pusher;

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

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

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

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

// We can change the default connection.
Pusher::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 Pusher\Laravel\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();
```

Documentation
-------------

[](#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 Channels package](https://github.com/pusher/pusher-php-server).

License
-------

[](#license)

[MIT](LICENSE) © [Pusher](https://pusher.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~104 days

Recently: every ~170 days

Total

20

Last Release

2124d ago

Major Versions

1.1.0 → 2.0.02015-07-01

2.5.0 → 3.0.02017-08-07

3.1.0 → v4.0.02017-10-23

PHP version history (5 changes)1.0.0PHP &gt;=5.4.7

1.1.0PHP &gt;=5.5.9

2.2.1PHP ^5.5.9 || ^7.0

2.4.0PHP ^5.6.4 || ^7.0

2.5.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/01b4a1473214e23eb1f3325389c23e26f43c9d970291f491139cb45bae38a7f8?d=identicon)[Nex.](/maintainers/Nex.)

---

Top Contributors

[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (155 commits)")[![WillSewell](https://avatars.githubusercontent.com/u/1119785?v=4)](https://github.com/WillSewell "WillSewell (30 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (10 commits)")[![kn100](https://avatars.githubusercontent.com/u/6201296?v=4)](https://github.com/kn100 "kn100 (9 commits)")[![shalvah](https://avatars.githubusercontent.com/u/14361073?v=4)](https://github.com/shalvah "shalvah (5 commits)")[![ce-brex](https://avatars.githubusercontent.com/u/28264129?v=4)](https://github.com/ce-brex "ce-brex (3 commits)")[![Lloople](https://avatars.githubusercontent.com/u/5665466?v=4)](https://github.com/Lloople "Lloople (3 commits)")[![ReadmeCritic](https://avatars.githubusercontent.com/u/15367484?v=4)](https://github.com/ReadmeCritic "ReadmeCritic (1 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")

---

Tags

httpapilaravelresteventspublishpusherphp-pusher-serverrealtimetrigger

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

400509.0k3](/packages/pusher-pusher-http-laravel)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[zfr/zfr-pusher

PHP library for interacting with the Pusher REST API

2112.7k1](/packages/zfr-zfr-pusher)[rap2hpoutre/jacky

Opinionated REST JSON HTTP API client for laravel

174.4k](/packages/rap2hpoutre-jacky)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

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