centrifugal/phpcent
PHP library to communicate with Centrifugo HTTP API
6.0.3
2.6M downloads/mo
#3507 most downloaded on Packagist
centrifugal/phpcent
What this package is like to depend on
Last release 3 months ago
07 May 2026
Release timing varies
gaps range from 2 weeks to 1.9 years
Most releases are documented
notes for 15 of 20 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
20 releases · first in 2015
2 releases in the last 12 months
see the full history below
Release timeline
20 releases · Jun 2015 to May 2026Releases
latest 20-
6.0.307 May 2026 -
6.0.207 May 2026Release notes
Open source →What's Changed
- Add batch api method by @everlCode in #67
- fix E_DEPRECATED:Function curl_close() is deprecated since 8.5, as it… by @hetao29 in #69
New Contributors
- @everlCode made their first contribution in #67
- @hetao29 made their first contribution in #69
Full Changelog: v6.0.1...v6.0.2
-
6.0.127 Jun 2024Release notes
Open source →What's Changed
- Fix for info() failing with the new HTTP API format. Added test. by @SteveTherrien in #65
Full Changelog: v6.0.0...v6.0.1
-
6.0.020 Jun 2024Release notes
Open source →What's Changed
- Use Centrifugo v5 HTTP API format by @AntistressStore in #63. Centrifugo v5 introduced a new format for server HTTP API, this change moves the library to use new API format. If you are using Centrifugo v5 – then the update to phpcent v6.0.0 should be smooth without additional changes in the code (since API format changes are all internal implementation detail). If you have Centrifugo v4 – then you can't use phpcent v6 - in this case stay with phpcent v5.x.
New Contributors
- @AntistressStore made their first contribution in #63
Full Changelog: v5.1.0...v6.0.0
Release notes
Open source →Since phpcent v6.0.0 we do not maintain CHANGELOG.md file.
All changes may be found on releases page on Github.
-
5.1.024 Mar 2023 -
5.0.029 Sep 2022Release notes
Open source →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.
Release notes
Open source →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.
-
4.0.006 Sep 2021Release notes
Open source →Adapt to work with Centrifugo v3.
- Deprecated
history_removeremoved (in favour ofhistoryRemove) - Deprecated
presence_statsremoved (in favour ofpresenceStats) - Drop support for PHP < 7.0.0
Release notes
Open source →Adapt to work with Centrifugo v3.
- Deprecated
history_removeremoved (in favour ofhistoryRemove) - Deprecated
presence_statsremoved (in favour ofpresenceStats) - Drop support for PHP < 7.0.0
- Deprecated
-
3.1.107 Aug 2020Release notes
Open source →- option to force IPv4 addresses when resolving hostnames, see #44 and #45. Thanks Steve Therrien!
$client->forceIpResolveV4(); -
3.1.012 Mar 2020 -
3.0.225 Feb 2020 -
3.0.111 Jul 2019Release notes
Open source →- cast user to string when generating connection token - fixes possible regression after updating to v3.0.0
-
3.0.014 May 2019 -
2.2.013 May 2019 -
2.1.013 May 2019Release notes
Open source →- fix compatibility with older PHP versions
- add
setUseAssocmethod to useassocoption while decoding JSON from server
-
2.0.005 Dec 2018 -
1.0.516 Oct 2018Nothing published for this version
-
1.0.429 Feb 2016Nothing published for this version
-
1.0.328 Feb 2016Nothing published for this version
-
0.6.106 Jul 2015Nothing published for this version
-
0.5.015 Jun 2015Nothing published for this version