amphp/http-tunnel
AMPHP HTTP Tunnel provides asynchronous HTTP tunneling for PHP using Amp, enabling CONNECT-based proxy tunneling and transparent TCP-over-HTTP streams. Useful for building clients that need to reach services through HTTP proxies with non-blocking I/O.
This package provides an HTTP and HTTPS CONNECT tunnel for PHP based on Amp.
This package can be installed as a Composer dependency.
composer require amphp/http-tunnel
More extensive code examples reside in the examples directory.
use Amp\Http\Tunnel\Http1TunnelConnector;
$connector = new Http1TunnelConnector('127.0.0.1:5512');
// $connector may now be used anywhere requiring an instance of Amp\Socket\SocketConnector.
amphp/http-tunnel follows the semver semantic versioning specification like all other amphp packages.
If you discover any security related issues, please email me@kelunik.com instead of using the issue tracker.
The MIT License (MIT). Please see LICENSE for more information.
How can I help you explore Laravel packages today?