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

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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log