thruway/client
Thruway Client is a PHP WAMP v2 client built on ReactPHP, enabling WebSocket pub/sub and RPC over persistent connections. It supports asynchronous messaging, topic subscriptions, and remote procedure calls for real-time PHP applications.
Consider it when:
Look elsewhere when:
For executives: This is a small PHP client for the WAMP messaging protocol that would let our backend participate directly in real-time, two-way messaging with browser and service clients — one connection for both live updates and server-initiated calls. It would support features like live notifications, presence, and interactive dashboards while reducing the number of bespoke integrations we maintain. The caveat is material: the package is thinly adopted and has not shipped a release since mid-2022, so it carries maintenance and security-patch risk, and it requires operating a WAMP router as new infrastructure. My recommendation is to fund a short, time-boxed proof of concept against a specific real-time use case, and default to our standard broadcasting stack unless the PoC shows a clear advantage.
For engineering: WAMP gives us RPC and pub/sub over a single WebSocket session, which is attractive if we want the server to invoke client-side or cross-service procedures rather than just push events. Adopting thruway/client means committing to a WAMP router (Crossbar.io or equivalent) and accepting a low-traffic, single-maintainer dependency whose last release predates current PHP versions. Before we build on it, we should verify PHP-version compatibility, review the connection/reconnect and error-handling paths, confirm whether we can fork and vendor it internally, and benchmark it against Laravel Reverb/Echo plus Redis pub/sub for our actual message volumes. If it clears those gates, it is a cheap way to validate an event-driven design; if not, we should not let it become load-bearing.
How can I help you explore Laravel packages today?