PHP code example of drmer / reproxy

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

    

drmer / reproxy example snippets




use Drmer\Reproxy\ReproxyServer;

$server = new ReproxyServer([
    // map your localhost to github server
    'tcp://127.0.0.1:443' => 'tcp://13.250.177.223:443',
]);

echo "Reverse proxy server starting\n";

$server->start();
// nothing will be executed after start

Drmer\Reproxy\ReproxyServiceProvider::class,

'tcp://127.0.0.1:443' => 'tcp://13.250.177.223:443',
start.php
sh
$ sudo php start.php
config/app.php
config/reproxy.php
sh
$ sudo php artisan reproxy