https://github.com/amphp/http-tunnel
This package provides an HTTP CONNECT tunnel for PHP based on Amp.
https://github.com/amphp/http-tunnel
connect http-tunnel php
Last synced: 3 months ago
JSON representation
This package provides an HTTP CONNECT tunnel for PHP based on Amp.
- Host: GitHub
- URL: https://github.com/amphp/http-tunnel
- Owner: amphp
- License: mit
- Created: 2019-11-18T18:51:52.000Z (almost 6 years ago)
- Default Branch: 2.x
- Last Pushed: 2025-02-12T23:34:01.000Z (8 months ago)
- Last Synced: 2025-05-26T12:54:48.041Z (4 months ago)
- Topics: connect, http-tunnel, php
- Language: PHP
- Homepage:
- Size: 68.4 KB
- Stars: 11
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http-tunnel

This package provides an HTTP and HTTPS `CONNECT` tunnel for PHP based on [Amp](https://github.com/amphp/amp).
## Installation
This package can be installed as a [Composer](https://getcomposer.org/) dependency.
```bash
composer require amphp/http-tunnel
```## Examples
More extensive code examples reside in the [`examples`](./examples) directory.
```php
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](http://semver.org/) semantic versioning specification like all other `amphp` packages.
## Security
If you discover any security related issues, please email [`me@kelunik.com`](mailto:me@kelunik.com) instead of using the issue tracker.
## License
The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.