PHP code example of amphp / http-tunnel
1. Go to this page and download the library: Download amphp/http-tunnel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amphp / http-tunnel example snippets
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.