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

Websocket Server Laravel Package

amphp/websocket-server

Async WebSocket server for PHP built on Amp’s event-driven concurrency. Handles upgrades, connections, message streaming, backpressure and graceful shutdown, making it easy to build real-time apps like chat, dashboards and live notifications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables real-time features (chat, live dashboards, streaming) at scale without traditional PHP bottlenecks
  • Reduces build-vs-buy trade-offs by leveraging a battle-tested async solution instead of custom WebSocket implementation
  • Aligns roadmap for high-concurrency use cases while avoiding migration to non-PHP stacks (e.g., Node.js)
  • Prioritizes structured, testable code for complex real-time logic through AMPHP’s coroutine-friendly design

When to Consider This Package

  • ✅ High-concurrency needs (10k+ simultaneous connections) with low-latency requirements
  • ✅ Existing AMPHP ecosystem usage (e.g., amphp/http-server) or PHP-centric infrastructure
  • ✅ Teams comfortable with async PHP patterns and seeking testable event-driven architecture
  • ❌ Low-traffic applications where HTTP polling suffices
  • ❌ Non-PHP stacks (e.g., Node.js, Go) where native WebSocket solutions are more mature
  • ❌ Enterprise needs requiring commercial support or SLAs (MIT license lacks vendor backing)
  • ❌ Teams without async programming experience (learning curve for coroutines/non-blocking I/O)

How to Pitch It (Stakeholders)

Executives: "This package delivers real-time capabilities like live chat and dashboards at scale with minimal infrastructure costs. By leveraging PHP’s async capabilities, we avoid costly server scaling and reduce development time versus building from scratch. With MIT licensing and proven AMPHP integration, it’s a cost-efficient, future-proof solution for our real-time needs."

Engineering: "Built on AMPHP’s non-blocking I/O, it handles high concurrency with low resource overhead. Coroutines simplify async code structure, making it testable and maintainable. Seamless integration with our existing http-server stack means we can deploy quickly without learning new languages. Perfect for scalable real-time features without sacrificing PHP’s ecosystem advantages."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport