PHPackages                             cavaon-wayne/pusher-php-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. [API Development](/categories/api)
4. /
5. cavaon-wayne/pusher-php-client

ActiveLibrary[API Development](/categories/api)

cavaon-wayne/pusher-php-client
==============================

Cavaon pusher for Laravel project

v2.0.0(6y ago)09MITPHP

Since Aug 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cavaon-wayne/pusher-php-client)[ Packagist](https://packagist.org/packages/cavaon-wayne/pusher-php-client)[ RSS](/packages/cavaon-wayne-pusher-php-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

CavaonPusher PHP wrapper
------------------------

[](#cavaonpusher-php-wrapper)

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

[](#installation)

```
composer require cavaon-wayne/pusher-php-client
```

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

### Laravel 5.5+:

[](#laravel-55)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Cavaon\Pusher\ServiceProvider::class,
```

If you want to make it easier to access Pusher or Event class, add this to your facades in app.php:

```
'CavaonPusher' => Cavaon\Pusher\Facade::class,
'CavaonEvent'  => Cavaon\Pusher\Events\Event::class,
```

Usage
-----

[](#usage)

Before usage, please remember to set your App Id and App secret in `config/broadcasting.php`, They are assigned to you via cavano-pusher-server's `.env` file

```
        'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_KEY'), //ANY DUMMPY STRING WILL DO
            'secret' => env('PUSHER_SECRET'), //YOUR SECRET HERE
            'app_id' => env('PUSHER_APP_ID'), //YOUR APP ID HERE
            'options' => [
                "host"=>env('PUSHER_HOST'), // YOUR PUSHER SERVER HERE, eg 'http://192.168.1.1'
                "port"=>env('PUSHER_HOST_PORT'), //YOUR PUSHER SERVER PORT HERE, eg '37037'
            ],
        ],
```

You need to get the JWT token generated by this pusher and the APP Id and pass them to your socket.io client:

```
$wsHostURL=CavaonPusher::getHostURL();
$token=CavaonPusher::getToken();
```

Here is a example how your will use them in your socket.io client:

```
var socket = io('{{$wsHostURL}}',{
    rememberUpgrade:true,
    query:{
        channel:"[your-channel-name]",
        token:"{{$token}}"
    },
});

socket.on('[your-event-name]', function(data){
    //use JSON.parse to decode the json string of data.
    console.log(data);
});
```

Broadcasting
------------

[](#broadcasting)

To broadcast event to you socket.io client:

```
$data=["id"=>1,"name"=>"Sydney day tour","price"=>100.5];
event(new CavaonEvent('your-channnel-name','your-event-name',$data));
```

Please remember to run make queue listening if you don't using the `sync` drive for queue

```
php artisan queue:listen
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2457d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/970173305592257c4780282a39fb8997a835d7a781eaab0ef1570ceebe41dce8?d=identicon)[wayne.w](/maintainers/wayne.w)

---

Top Contributors

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

---

Tags

cavaon

### Embed Badge

![Health badge](/badges/cavaon-wayne-pusher-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/cavaon-wayne-pusher-php-client/health.svg)](https://phpackages.com/packages/cavaon-wayne-pusher-php-client)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

10710.0k](/packages/neuron-core-neuron-laravel)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3171.8k](/packages/joggapp-laravel-aws-sns)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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