Download the PHP package meetjet/laravel-centrifugo without Composer
On this page you can find all versions of the php package meetjet/laravel-centrifugo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download meetjet/laravel-centrifugo
More information about meetjet/laravel-centrifugo
Files in meetjet/laravel-centrifugo
Package laravel-centrifugo
Short Description This is my package laravel-centrifugo
License MIT
Homepage https://github.com/meetjet/laravel-centrifugo
Informations about the package laravel-centrifugo
Laravel Centrifugo
Features
- Compatible with latest Centrifugo 3.0.3
- Contains instructions and configuration file for setting up with Laravel Sail
Requirements
- PHP >= 7.4
- Laravel 7.30.4 - 8
- Guzzle 6 - 7
- Centrifugo Server 3.0.3 or newer (see here)
Installation
You can install the package via composer:
Open your config/broadcasting.php and add new connection like this:
Also, you should add these two lines to your .env file:
These lines are optional:
Then change BROADCAST_DRIVER
setting in .env file:
You can publish the config file with:
This is the contents of the published config file:
Setup local Centrifugo server with Laravel Sail
Copy centrifugo config file to project root folder via command:
Add Centrifugo config block into services section of docker-compose.yml file:
Open your .env and change centrifugo api url:
Restart Laravel Sail.
Usage
To configure Centrifugo server, read official documentation
For broadcasting events, see official documentation of Laravel
Usage with Centrifugo Client
Usage with Laravel Broadcast feature
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Zorca Orcinus
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-centrifugo with dependencies
laravel/framework Version ^7.30.4|^8.0
guzzlehttp/guzzle Version ~6.0|^7.0
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version ^8.37