PHPackages                             tomato-technologies/tomato-pusher-php - 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. tomato-technologies/tomato-pusher-php

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

tomato-technologies/tomato-pusher-php
=====================================

Tomato pusher for Laravel project

v1.0.2(7y ago)024MITPHP

Since Aug 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tomato-technologies/tomato-pusher-php)[ Packagist](https://packagist.org/packages/tomato-technologies/tomato-pusher-php)[ RSS](/packages/tomato-technologies-tomato-pusher-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

TomatoPusher PHP wrapper
------------------------

[](#tomatopusher-php-wrapper)

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

[](#installation)

```
composer require tomatotech/tomato_pusher_php
```

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

```
Tomato\Pusher\ServiceProvider::class,
```

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

```
'TomatoPusher' => Tomato\Pusher\Facade::class,
'TomatoEvent'  => Tomato\Pusher\Events\Event::class,
```

Usage
-----

[](#usage)

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

```
    "tomato_pusher" => [
        'app_id' => env('TOMATO_PUSHER_APP_ID'),
        'app_secret' => env('TOMATO_PUSHER_APP_SECRET'),
    ],
```

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

```
$appId=TomatoPusher::getAppId();
//or $appId=config("services.tomato_pusher.app_id");
$token=TomatoPusher::getToken();
```

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

```
var socket = io('http://localhost:37037/{{$appId}}',{
    rememberUpgrade:true,
    query:{
        channel:"{{your-channel-name}}",
        token:"{{$token}}"
    },
});

socket.on('{{your-event-name}}', function(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 TomatoEvent('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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

2864d 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 (5 commits)")

---

Tags

tomato technologies

### Embed Badge

![Health badge](/badges/tomato-technologies-tomato-pusher-php/health.svg)

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M282](/packages/laravel-horizon)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.9M203](/packages/illuminate-broadcasting)[illuminate/auth

The Illuminate Auth package.

9327.9M1.2k](/packages/illuminate-auth)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)

PHPackages © 2026

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