PHP code example of mrethical / http-proxies

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

    

mrethical / http-proxies example snippets


return [
    'model' => Mrethical\HttpProxies\Models\Proxy::class,
    'selenium' => [
        'url' => env('SELENIUM_URL', 'http://localhost:4444'),
        'timeouts' => [
            'connection' => env('SELENIUM_CONNECTION_TIMEOUT'),
            'request' => env('SELENIUM_REQUEST_TIMEOUT'),
            'pageload' => env('SELENIUM_PAGELOAD_TIMEOUT', 60),
            'script' => env('SELENIUM_SCRIPT_TIMEOUT', 3),
        ],
    ],
];

use Mrethical\HttpProxies\HttpProxies;

$client = app(HttpProxies::class)->createClient();
bash
php artisan vendor:publish --tag="http-proxies-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="http-proxies-config"
bash
php artisan http-proxies:add 1.2.3.4 --port=80