centrifugal/phpcent
PHP client library for Centrifugo v5 HTTP API. Publish, broadcast, subscribe, manage presence and history, plus generate JWT connection and subscription tokens. Install via Composer with composer require centrifugal/phpcent:~6.0.
Full Changelog: https://github.com/centrifugal/phpcent/compare/v6.0.2...v6.0.3
Full Changelog: https://github.com/centrifugal/phpcent/compare/v6.0.1...v6.0.2
Full Changelog: https://github.com/centrifugal/phpcent/compare/v6.0.0...v6.0.1
Full Changelog: https://github.com/centrifugal/phpcent/compare/v5.1.0...v6.0.0
Full Changelog: https://github.com/centrifugal/phpcent/compare/v5.0.0...v5.1.0
In this release we adapt phpcent for Centrifugo v4:
generatePrivateChannelToken renamed to generateSubscriptionToken and now supports providing sub (user ID) claim - according to channel auth docs and v4 subscription token migration docs.generateConnectionToken method $userId argument is not optional anymore – it should be explicitly provided. You can still pass empty string explicitly for anonymous users.Please note, that you can generate Centrifugo tokens using any JWT library for PHP.
Adapt to work with Centrifugo v3.
history_remove removed (in favour of historyRemove)presence_stats removed (in favour of presenceStats)How can I help you explore Laravel packages today?