Since phpcent v6.0.0 we do not maintain CHANGELOG.md file.
All changes may be found on releases page on Github.
- Add meta data support in jwt token #56
In this release we adapt phpcent for Centrifugo v4:
generatePrivateChannelToken
renamed togenerateSubscriptionToken
and now supports providingsub
(user ID) claim - according to channel auth docs and v4 subscription token migration docs.- In
generateConnectionToken
method$userId
argument is not optional anymore – it should be explicitly provided. You can still pass empty string explicitly for anonymous users.
Adapt to work with Centrifugo v3.
- Deprecated
history_remove
removed (in favour ofhistoryRemove
) - Deprecated
presence_stats
removed (in favour ofpresenceStats
) - Drop support for PHP < 7.0.0
- option to force IPv4 addresses when resolving hostnames, see #44 and #45. Thanks Steve Therrien!
$client->forceIpResolveV4();
- support
channels
JWT claim ingenerateConnectionToken
function - which is an array of server-side channels to subscribe (see docs). Thanks, Julius TM
- fix
Call to undefined function phpcent\_json_last_error_msg()
- cast user to string when generating connection token - fixes possible regression after updating to v3.0.0
- library is now distributed under new name –
centrifugal/phpcent
.
- no changes here – just to sync actual version with Packagist.
- fix compatibility with older PHP versions
- add
setUseAssoc
method to useassoc
option while decoding JSON from server
- fix safety param check - see #29
- fix setting safety and use set user agent on request - see #28
- fix generating error message - see #24
- update to work with Centrifugo v2