PackageTrack
Sign in Get early access

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 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 20
  1. 6.0.3 07 May 2026
    Release notes

    What's Changed

    • Extend HTTP API methods to match current proto and clean up Client by @FZambia in #70

    Full Changelog: v6.0.2...v6.0.3

    Open source →
    Release notes

    v6.0.3 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 6.0.2 07 May 2026
    Release notes

    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

    Full Changelog: v6.0.1...v6.0.2

    Open source →
    Release notes

    v6.0.2

    Compare

    Choose a tag to compare

    Open source →
  3. 6.0.1 27 Jun 2024
    Release notes

    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

    Open source →
    Release notes

    v6.0.1

    Compare

    Choose a tag to compare

    Open source →
  4. 6.0.0 20 Jun 2024
    Release notes

    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

    Full Changelog: v5.1.0...v6.0.0

    Open source →
    Release notes

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

    All changes may be found on releases page on Github.

    Open source →
    Release notes

    v6.0.0

    Compare

    Choose a tag to compare

    Open source →
  5. 5.1.0 24 Mar 2023
    Release notes

    What's Changed

    • Add meta data support in jwt token by @BaBL86 in #56

    New Contributors

    Full Changelog: v5.0.0...v5.1.0

    Open source →
    Release notes
    • Add meta data support in jwt token #56
    Open source →
    Release notes

    v5.1.0

    Compare

    Choose a tag to compare

    Open source →
  6. 5.0.0 29 Sep 2022
    Release notes

    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.

    Please note, that you can generate Centrifugo tokens using any JWT library for PHP.

    Open source →
    Release notes

    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.
    Open source →
    Release notes

    v5.0.0

    Compare

    Choose a tag to compare

    Open source →
  7. 4.0.0 06 Sep 2021
    Release notes

    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
    Open source →
    Release notes

    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
    Open source →
    Release notes

    v4.0.0

    Compare

    Choose a tag to compare

    Open source →
  8. 3.1.1 07 Aug 2020
    Release notes
    $client->forceIpResolveV4();
    
    Open source →
    Release notes

    v3.1.1

    Compare

    Choose a tag to compare

    Open source →
  9. 3.1.0 12 Mar 2020
    Release notes
    • support channels JWT claim in generateConnectionToken function - which is an array of server-side channels to subscribe (see docs). Thanks, Julius TM
    Open source →
    Release notes

    v3.1.0

    Compare

    Choose a tag to compare

    Open source →
  10. 3.0.2 25 Feb 2020
    Release notes
    • fix Call to undefined function phpcent\_json_last_error_msg()
    Open source →
    Release notes

    v3.0.2

    Compare

    Choose a tag to compare

    Open source →
  11. 3.0.1 11 Jul 2019
    Release notes
    • cast user to string when generating connection token - fixes possible regression after updating to v3.0.0
    Open source →
  12. 3.0.0 14 May 2019
    Release notes
    • library is now distributed under new name – centrifugal/phpcent.
    Open source →
  13. 2.2.0 13 May 2019
    Release notes
    • no changes here – just to sync actual version with Packagist.
    Open source →
  14. 2.1.0 13 May 2019
    Release notes
    • fix compatibility with older PHP versions
    • add setUseAssoc method to use assoc option while decoding JSON from server
    Open source →
  15. 2.0.0 05 Dec 2018
    Release notes
    • update to work with Centrifugo v2
    Open source →
  16. 1.0.5 16 Oct 2018

    Nothing published for this version

  17. 1.0.4 29 Feb 2016

    Nothing published for this version

  18. 1.0.3 28 Feb 2016

    Nothing published for this version

  19. 0.6.1 06 Jul 2015

    Nothing published for this version

  20. 0.5.0 15 Jun 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive