Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpcent Laravel Package

centrifugal/phpcent

PHP client for Centrifugo v5 HTTP API. Publish and broadcast to channels, manage subscriptions, presence and history, and run batch calls. Also generates JWT connection and subscription tokens. Composer-ready with configurable timeouts.

View on GitHub
Deep Wiki
Context7
v6.0.3

What's Changed

Full Changelog: https://github.com/centrifugal/phpcent/compare/v6.0.2...v6.0.3

v6.0.2

What's Changed

New Contributors

Full Changelog: https://github.com/centrifugal/phpcent/compare/v6.0.1...v6.0.2

v6.0.1

What's Changed

Full Changelog: https://github.com/centrifugal/phpcent/compare/v6.0.0...v6.0.1

v6.0.0

What's Changed

  • Use Centrifugo v5 HTTP API format by @AntistressStore in https://github.com/centrifugal/phpcent/pull/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: https://github.com/centrifugal/phpcent/compare/v5.1.0...v6.0.0

v5.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/centrifugal/phpcent/compare/v5.0.0...v5.1.0

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.

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

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
v3.1.0
v3.0.2
v3.0.1
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
datacore/hub-sdk
alengo/sulu-http-cache-bundle
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable
irajul/filament-shadcn-theme
agtp/agtp-php
agtp/mod-php
centraldesktop/protobuf-php
trappistes/laravel-custom-fields
splash/sonata-admin
splash/metadata