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

Socket Laravel Package

react/socket

Async TCP/IP and TLS socket servers and clients for ReactPHP. Provides streaming, non-blocking connections built on EventLoop and Stream, with reusable interfaces and helpers for TCP, Unix sockets, secure servers, and connectors.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Real-time infrastructure: Enables building high-concurrency, low-latency services (e.g., IoT data pipelines, game servers, or live analytics) without blocking I/O.
  • Build vs. buy: Eliminates need to reinvent socket handling; proven open-source solution (MIT license) with 1283+ stars and active maintenance.
  • Roadmap flexibility: Supports custom protocol development (beyond HTTP) for specialized business needs like secure device communication or internal service mesh.
  • Scalability: Handles 10k+ concurrent connections on a single PHP process – critical for cost-efficient scaling of real-time features.
  • Security posture: Built-in TLS support ensures encrypted communication out-of-the-box for sensitive data transmission.

When to Consider This Package

  • Adopt when:
    • Building non-HTTP network services (custom TCP/UDP protocols, WebSocket-like systems, or database clients)
    • Using ReactPHP ecosystem for async PHP workloads
    • Needing Unix socket support for inter-process communication
    • Requiring TLS encryption for internal service-to-service communication
  • Look elsewhere when:
    • Building standard HTTP services (use ReactPHP HTTP server instead)
    • Project requires UDP support (this package is TCP/TLS-only)
    • Team lacks event-loop experience (steep learning curve for traditional PHP developers)
    • Legacy synchronous PHP stack (e.g., Apache/mod_php) without async infrastructure

How to Pitch It (Stakeholders)

Executives: "This open-source package lets us build ultra-scalable real-time services in PHP that handle 10k+ concurrent connections on minimal infrastructure – cutting cloud costs while enabling new features like live IoT monitoring or game servers. It’s battle-tested in production and avoids reinventing critical networking code."

Engineering: "It provides a robust, async socket layer for ReactPHP with clean APIs for TCP/TLS/Unix sockets. We’ll use it to build our custom device communication protocol without blocking I/O – integrating seamlessly with our existing event-driven architecture. The documentation and examples make onboarding straightforward for our async-capable team."

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