Registry / networking / clue-socks-react

clue-socks-react

JSON →
library1.5.0phppackagistunverified

Async SOCKS proxy connector client and server implementation, tunnel any TCP/IP-based protocol through a SOCKS5 or SOCKS4(a) proxy server, built on top of ReactPHP.

composer require clue/socks-react
INSTALL
IMPORT
SIG · CLUE-SOCKS-REACT
C
clue-socks-react
networkingphpv1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use Clue\React\Socks\Client;

Create a SOCKS5 client and connect to a remote host through the proxy.

use Clue\React\Socks\Client; use React\Socket\Connector; $loop = React\EventLoop\Loop::get(); $client = new Client('127.0.0.1:9050', new Connector($loop)); $connector = new Connector($loop, ['tcp' => $client]); $connector->connect('example.com:80')->then(function ($conn) { echo 'Connected!'; }); $loop->run();
Debug
Known issues
gotchaRequires ext-sockets and ext-pcntl for full functionality on some platforms.
fix
Install required PHP extensions: sockets, pcntl.
affects: >=1.0.0
Upgrade
Version history
1.5.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
36
Resources
clue-socks-react — pip install clue-socks-react · libregistry