Weave 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

Php Centrifugo Laravel Package

oleh-ozimok/php-centrifugo

A PHP client for Centrifugo, the scalable real-time messaging server. Publish messages to channels via the HTTP API, push live updates to websocket clients, and integrate real-time features into Laravel or any PHP application with a simple, framework-agnostic interface.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Real-time feature delivery without WebSocket ownership. This package lets Laravel/PHP backends publish events to Centrifugo channels from controllers, queue jobs, or console commands. That supports user notifications, chat message fan-out, live activity feeds, job-progress updates, order-status alerts, and internal operational dashboards while keeping persistent connections out of the PHP application.
  • Build vs. buy/integrate. The client is a thin, MIT-licensed wrapper around Centrifugo’s HTTP publish API. It reduces boilerplate versus writing a custom Guzzle client, but the small surface area also means low lock-in and easy replacement behind an interface.
  • Roadmap de-risking. A time-boxed spike can validate whether Centrifugo plus a lightweight PHP publisher is enough for an upcoming real-time feature. If the spike succeeds, the PM can decide whether to standardize on Centrifugo, adopt a maintained SDK/fork, or build a minimal in-house publisher.
  • Scope discipline. This package is publish-oriented. It should not be used to justify presence, history, moderation, token issuance, or admin-console requirements without confirming those are handled elsewhere in Centrifugo or another service.
  • Operational simplicity. Publishing from existing queue workers and Laravel service providers avoids adding a separate real-time backend service just to emit events.

When to Consider This Package

Consider it when:

  • The application is Laravel/PHP and already uses, or plans to use, a compatible Centrifugo version—compatibility with current Centrifugo releases must be proven before adoption.
  • The need is primarily server-to-client publish/fan-out, not presence, history, user management, or advanced Centrifugo administration.
  • The team wants a Composer-installable, framework-agnostic client that can be bound into Laravel’s container and mocked in tests.
  • The use case is an MVP, prototype, internal tool, or low-risk feature where a 2018-era dependency can be pinned, wrapped, and monitored.
  • The team is willing to isolate the client behind an internal interface and accept responsibility for maintenance, security review, and eventual replacement.

Look elsewhere when:

  • You need modern Centrifugo features, current authentication patterns, or guaranteed compatibility with Centrifugo v3/v4/v5-era APIs.
  • You require active maintenance, PHP 8.x support guarantees, security patches, community support, or an SLA. The last release is from 2018 and adoption is low.
  • You need a full Centrifugo SDK covering presence, history, stats, bans, or other server APIs.
  • The product is regulated, high-scale, or customer-facing at a level where an unmaintained dependency is unacceptable.
  • Writing a small, owned HTTP wrapper around Centrifugo’s publish endpoint would be cheaper than managing dependency risk.

How to Pitch It (Stakeholders)

For executives: This is a low-cost, MIT-licensed PHP client that can accelerate real-time notifications, chat, and live updates in a Laravel product by publishing events to Centrifugo. It avoids building and operating WebSocket infrastructure directly. The strategic caveat is maturity: the package was last released in 2018, has low adoption, and may not match current Centrifugo APIs. Approve it as a validated spike or short-term integration with an explicit maintenance/exit plan—not as an unquestioned long-term platform dependency.

For engineering: The client is thin, composable, dependency-injection-friendly, and easy to bind in Laravel and call from queue jobs. The integration risk is not conceptual complexity; it is version drift and maintenance. Validate the Centrifugo API contract first, pin the dependency, wrap it behind an application-owned interface, and add contract tests. If Centrifugo is upgraded or the package blocks PHP/runtime modernization, replace the wrapper with a small Guzzle-based publisher or a maintained SDK without changing product-facing code.

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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums