PHP code example of wolftotem4 / jet-proxy

1. Go to this page and download the library: Download wolftotem4/jet-proxy 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/ */

    

wolftotem4 / jet-proxy example snippets


$forwarding = [
    // Edit the forwarding list below.
    'localhost:8080' => ['host' => 'localhost', 'ip' => '127.0.0.1'],
  
    // You can disguise as an actual website.  (Please don't do anything evil.)
    // Don't forget you need to set up `/etc/hosts` (Linux)
    // or '%systemroot%\System32\drivers\etc\hosts' (Windows).
    'example.com' => ['host' => 'example.com', 'ip' => '123.123.123.123'],
];

php -S localhost:8080 index.php

# php cli-server [host binding] [target host] [target ip address]
php cli-server.php localhost:8080 example.com 123.123.123.123