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

Client Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Real-time feature delivery (Pub/Sub): Lets a Laravel/PHP backend publish and subscribe to topics over a single WebSocket connection, enabling live notifications, activity feeds, chat, presence, dashboards, and collaborative editing without polling.
  • Bidirectional RPC between services and clients: WAMP provides both remote procedure calls and pub/sub on one transport, so a PM can scope features that need the server to call the browser/edge (server-initiated actions, push commands, interactive workflows) rather than only react to HTTP requests.
  • Event-driven architecture consolidation: Supports moving from ad-hoc cron jobs, queue workers, and polling loops toward a single messaging fabric shared by PHP services and browser JS clients (via AutobahnJS), reducing the number of bespoke integration points a roadmap has to maintain.
  • Build vs. buy / protocol vs. product trade-off: Adopting a WAMP client implies committing to a WAMP router (typically Crossbar.io) as infrastructure. That is a platform decision, not just a library decision, and should be weighed against managed real-time services.
  • Use cases that justify the dependency: Multi-service fan-out where PHP is one participant among many; IoT/telemetry ingestion; internal tooling needing low-latency server-to-client commands; systems already standardized on WAMP.
  • Roadmap signal — treat as a spike, not a commitment: With ~11 stars, a last release in mid-2022, and a low opportunity score, this is a proof-of-concept enabler. It should inform an experiment or a narrowly scoped internal tool, not anchor a customer-facing SLA.

When to Consider This Package

Consider it when:

  • Your platform has already standardized on WAMP and a router such as Crossbar.io, and you need PHP/Laravel to join the same messaging fabric as existing browser or microservice participants.
  • You need both RPC and pub/sub over one connection, and splitting into separate HTTP + WebSocket + queue stacks would add meaningful operational complexity.
  • The workload is internal, low-blast-radius, or a time-boxed prototype where a small, lightly maintained library is an acceptable risk.
  • You have engineering capacity to vendor or fork the package and own security patches and PHP-version compatibility.
  • You are evaluating protocol fit (WAMP vs. MQTT vs. raw WebSocket) and want a cheap way to test server-side participation.

Look elsewhere when:

  • The requirement is conventional Laravel broadcasting — Laravel Echo with Reverb, Soketi, Pusher, or Ably gives first-party support, documentation, and a hiring pool. This is the default answer for most PMs.
  • You need maintained dependencies with a security-response path. A single-maintainer, low-star package last released in 2022 is a supply-chain and upgrade liability across PHP major versions.
  • Scale and observability are contractual. Managed services or broker-backed pub/sub (Redis, NATS, Kafka) offer monitoring, backpressure, and support SLAs that this package cannot.
  • Your team has no WAMP expertise. The learning curve for WAMP semantics plus router operations usually exceeds the cost of a mainstream alternative.
  • You only need one-way server→client push. A simpler SSE or broadcast channel solves it without a new protocol.

How to Pitch It (Stakeholders)

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.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib