PHP code example of sicaboy / laravel-http-proxy
1. Go to this page and download the library: Download sicaboy/laravel-http-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/ */
sicaboy / laravel-http-proxy example snippets
Sicaboy\LaravelHttpProxy\HttpProxyServiceProvider::class,
'HttpProxy' => Sicaboy\LaravelHttpProxy\Facades\HttpProxy::class,
use Sicaboy\LaravelHttpProxy\Facades\HttpProxy;
// Get a valid proxy. e.g."12.34.56.78:8080"
$proxy = HttpProxy::getProxy();
// Give up the current cached proxy and get another valid proxy
$proxy = HttpProxy::refreshProxy();
ssh
php artisan vendor:publish --provider="Sicaboy\LaravelHttpProxy\HttpProxyServiceProvider"