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

Socks React Laravel Package

clue/socks-react

Async SOCKS5/SOCKS4(a) proxy client and server for ReactPHP. Tunnel any TCP/IP protocol (HTTP, SMTP, IMAP, etc.) through a SOCKS proxy using the standard ConnectorInterface, enabling easy drop-in proxy support and parallel connections.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Geoblocking/Anonymity Use Cases: Enables routing traffic through SOCKS proxies (e.g., Tor, SSH, or private SOCKS servers) to bypass regional restrictions or mask origin IPs for compliance/privacy needs.
  • Async Microservices Architecture: Integrates seamlessly with ReactPHP’s event-driven ecosystem, allowing PMs to build scalable, non-blocking services (e.g., web scrapers, API gateways) that route traffic through proxies without blocking threads.
  • Build vs. Buy: Avoids reinventing SOCKS proxy logic; leverages a battle-tested, MIT-licensed package to reduce dev time and technical debt.
  • Roadmap for Proxy-Based Features:
    • Dark Web/Scraping Tools: Add SOCKS support to existing crawlers or data pipelines.
    • Compliance/Privacy Tools: Enable anonymous data collection for research or legal requirements.
    • Hybrid Cloud/Edge: Route traffic between regions or data centers via proxies for latency/bandwidth optimization.
  • Multi-Protocol Support: Extends beyond HTTP(S) to protocols like SMTP, IMAP, or custom TCP services, unlocking use cases like secure email relay or IoT device management.

When to Consider This Package

  • Adopt if:
    • Your PHP stack uses ReactPHP (async I/O) and needs SOCKS proxy support for existing connectors (e.g., HTTP clients, TCP services).
    • You require lightweight, non-blocking proxy routing (e.g., for high-throughput systems).
    • Your use case involves SOCKS5/SOCKS4(a) (common in Tor, SSH tunnels, or private proxies) but doesn’t need advanced features like UDP or GSSAPI.
    • You’re building a proxy server in PHP (e.g., for internal routing or testing) and want a SOLID implementation.
  • Look elsewhere if:
    • You need UDP support (not implemented in this package).
    • Your stack is synchronous (e.g., pure Symfony HTTP client without ReactPHP).
    • You require enterprise-grade SOCKS features (e.g., load balancing, advanced auth like Kerberos).
    • You’re targeting Windows-only environments (ReactPHP has limited Windows support).
    • You need SOCKS over QUIC or other cutting-edge protocols (this package focuses on TCP/IP).

How to Pitch It (Stakeholders)

For Executives: "This package lets us route all our PHP-based traffic—web requests, emails, or custom services—through SOCKS proxies (like Tor or private servers) without blocking performance. It’s like adding a VPN layer to our async microservices, enabling geoblocking bypass, anonymity for compliance, or optimized global traffic routing. Since it’s built on ReactPHP, it integrates cleanly with our existing async stack and avoids vendor lock-in. Low risk: MIT license, actively maintained, and used in production by the ReactPHP ecosystem."

For Engineers: *"clue/socks-react gives us a drop-in SOCKS5/SOCKS4(a) client/server for ReactPHP. Key benefits:

  • Plug-and-play: Replace any ConnectorInterface (e.g., in React\Http\Browser) with a SOCKS-wrapped connector.
  • Async-first: Handles parallel connections and timeouts gracefully via Promises.
  • Flexible: Supports TLS, auth, DNS resolution, and even custom proxy chaining.
  • Lightweight: No bloat—just a thin abstraction over ReactPHP’s socket layer. Use it to:
  • Route HTTP(S) traffic through Tor/SSH proxies for anonymity.
  • Build a PHP-based SOCKS proxy server for internal routing.
  • Test geo-restricted services by spoofing IPs. Example: Swap $connector in React\Http\Browser with $proxy = new Clue\React\Socks\Client('socks://proxy.example.com')—done."*
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.
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core