Download the PHP package tomato-technologies/tomato-pusher-php without Composer
On this page you can find all versions of the php package tomato-technologies/tomato-pusher-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomato-technologies/tomato-pusher-php
More information about tomato-technologies/tomato-pusher-php
Files in tomato-technologies/tomato-pusher-php
Package tomato-pusher-php
Short Description Tomato pusher for Laravel project
License MIT
Informations about the package tomato-pusher-php
TomatoPusher PHP wrapper
Installation
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Laravel 5.5+:
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
If you want to make it easier to access Pusher or Event class, add this to your facades in app.php:
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
You need to get the JWT token generated by this pusher and the APP Id and pass them to your socket.io client:
Here is a example how your will use them in your socket.io client:
Broadcasting
To broadcast event to you socket.io client:
Please remember to run make queue listening if you don't using the sync
drive for queue
All versions of tomato-pusher-php with dependencies
illuminate/contracts Version 5.2.x|5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
illuminate/support Version 5.2.x|5.3.x|5.4.x|5.5.x|5.6.x|5.7.x
predis/predis Version ~1.0
lcobucci/jwt Version ^3.2