Download the PHP package fresh/centrifugo-bundle without Composer
On this page you can find all versions of the php package fresh/centrifugo-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fresh/centrifugo-bundle
More information about fresh/centrifugo-bundle
Files in fresh/centrifugo-bundle
Package centrifugo-bundle
Short Description Provides communication with web-socket server Centrifugo in Symfony applications.
License MIT
Homepage https://github.com/fre5h/CentrifugoBundle
Informations about the package centrifugo-bundle
CentrifugoBundle
đĻ Provides communication with web-socket server Centrifugo in Symfony applications.
Features đ
- [x] Compatible with latest Centrifugo 5.4.5 đ
- [x] Wrapper over Centrifugo HTTP API đ
- [X] Authentication with JWT token (HMAC algorithm) for private channel đī¸
- [x] JSON streaming format đĒ
- [x] Console commands âī¸ī¸
- [x] Integration into Symfony Web-Profiler đī¸
Requirements đ§
- PHP >= 8.3
- Symfony 7.0
Installation đą
Choose the version you need
Bundle Version (X.Y.Z) | PHP | Symfony | Comment |
---|---|---|---|
6.0.* |
>= 8.3 |
7.* |
Current version |
5.3.* |
>= 8.2 |
7.* |
Previous version |
By default, Symfony Flex adds this bundle to the config/bundles.php
file and adds required environment variables into .env
file.
In case when you ignored contrib-recipe
during bundle installation it would not be done. Then you have to do this manually.
Check the config/bundles.php
file
Check the .env
file and add you configuration
CENTRIFUGO_API_KEY
should be the same value as option api_key
in your Centrifugo config file.
CENTRIFUGO_SECRET
should be the same value as option token_hmac_secret_key
in your Centrifugo config file.
âšī¸ Customize bundle configuration
Using đ§âđ
Centrifugo service
âšī¸ More examples of using Centrifugo service
Authentication with JWT tokens đī¸
- For anonymous
- For authenticated User
- For private channel
Console commands âī¸
centrifugo:publish
centrifugo:broadcast
centrifugo:subscribe
centrifugo:unsubscribe
centrifugo:disconnect
centrifugo:refresh
centrifugo:presence
centrifugo:presence-stats
centrifugo:history
centrifugo:history-remove
centrifugo:channels
centrifugo:info
âšī¸ More examples of using console commands
Integration into Symfony Web-Profiler đī¸
Autocomplete channels in console commands đĒ
Contributing đ¤
Read the CONTRIBUTING file.
All versions of centrifugo-bundle with dependencies
fresh/datetime Version ^4.0
symfony/console Version ~7.0
symfony/config Version ~7.0
symfony/dependency-injection Version ~7.0
symfony/framework-bundle Version ~7.0
symfony/http-client Version ~7.0
symfony/http-foundation Version ~7.0
symfony/http-kernel Version ~7.0
symfony/security-core Version ~7.0
symfony/validator Version ~7.0