v5.0.0
In this release we adapt phpcent for Centrifugo v4:
generatePrivateChannelTokenrenamed togenerateSubscriptionTokenand now supports providingsub(user ID) claim - according to channel auth docs and v4 subscription token migration docs.- In
generateConnectionTokenmethod$userIdargument 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.