amphp / http-tunnel
HTTP/1.1 CONNECT tunnel connector built on the Amp concurrency framework
Fund package maintenance!
amphp
Installs: 636 085
Dependents: 4
Suggesters: 0
Security: 0
Stars: 10
Watchers: 7
Forks: 4
Open Issues: 1
Requires
- php: >=8.1
- amphp/amp: ^3
- amphp/byte-stream: ^2
- amphp/http: ^2.1
- amphp/http-client: ^5
- amphp/socket: ^2.3
Requires (Dev)
- amphp/php-cs-fixer-config: ^2
- amphp/phpunit-util: ^3
- leproxy/leproxy: ^0.2.2
- phpunit/phpunit: ^9
- psalm/phar: ~5.23.0
- revolt/event-loop-adapter-react: ^1
This package is auto-updated.
Last update: 2025-02-12 23:34:07 UTC
README
This package provides an HTTP and HTTPS CONNECT
tunnel for PHP based on Amp.
Installation
This package can be installed as a Composer dependency.
composer require amphp/http-tunnel
Examples
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.
Versioning
amphp/http-tunnel
follows the semver semantic versioning specification like all other amphp
packages.
Security
If you discover any security related issues, please email me@kelunik.com
instead of using the issue tracker.
License
The MIT License (MIT). Please see LICENSE
for more information.