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 3d 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 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

2818d ago

### Community

Maintainers

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

---

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

[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)

PHPackages © 2026

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