Skip to content

Latest commit

 

History

History
73 lines (40 loc) · 2.42 KB

changelog.md

File metadata and controls

73 lines (40 loc) · 2.42 KB

v6.0.0

Since phpcent v6.0.0 we do not maintain CHANGELOG.md file.

All changes may be found on releases page on Github.

v5.1.0

  • Add meta data support in jwt token #56

v5.0.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.
  • In generateConnectionToken method $userId argument is not optional anymore – it should be explicitly provided. You can still pass empty string explicitly for anonymous users.

v4.0.0

Adapt to work with Centrifugo v3.

  • Deprecated history_remove removed (in favour of historyRemove)
  • Deprecated presence_stats removed (in favour of presenceStats)
  • Drop support for PHP < 7.0.0

v3.1.1

$client->forceIpResolveV4();

v3.1.0

  • support channels JWT claim in generateConnectionToken function - which is an array of server-side channels to subscribe (see docs). Thanks, Julius TM

v3.0.2

  • fix Call to undefined function phpcent\_json_last_error_msg()

v3.0.1

  • cast user to string when generating connection token - fixes possible regression after updating to v3.0.0

v3.0.0

  • library is now distributed under new name – centrifugal/phpcent.

v2.2.0

  • no changes here – just to sync actual version with Packagist.

v2.1.0

  • fix compatibility with older PHP versions
  • add setUseAssoc method to use assoc option while decoding JSON from server

v2.0.3

  • fix safety param check - see #29

v2.0.2

  • fix setting safety and use set user agent on request - see #28

v2.0.1

  • fix generating error message - see #24

v2.0.0

  • update to work with Centrifugo v2