ratchet/pawl
Async WebSocket client for PHP built on ReactPHP promises. Connect to ws/wss endpoints, negotiate subprotocols, send custom headers, and handle messages via event-driven callbacks. Includes Connector/WebSocket/Message APIs and Autobahn-tested compatibility.
Architecture fit: Excellent for async event-driven architectures (ReactPHP-based systems), but fundamentally incompatible with Laravel's synchronous request-response cycle. Must be isolated to background workers or CLI processes—never embedded in HTTP request handlers. Requires explicit event loop management, which conflicts with Laravel's default behavior. Ideal for real-time data ingestion (e.g., stock tickers, IoT device feeds) but unsuitable for user-facing web features.
Integration feasibility: High for standalone Artisan commands or queue workers via Loop::run(). Low for direct web server integration due to Laravel's blocking nature. Composer installation is trivial, but ReactPHP dependencies (e.g., ReactSocket, Guzzle) introduce version pinning risks. Must avoid mixing synchronous Laravel components (e.g., Eloquent) with async operations in the same process.
Technical risk: Moderate overall. Low risk for client-side WebSocket operations (passes Autobahn testsuite), but high operational risk from misconfiguration (e.g., event
How can I help you explore Laravel packages today?