PHP code example of xchimx / laravel-gimmeproxy
1. Go to this page and download the library: Download xchimx/laravel-gimmeproxy 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/ */
xchimx / laravel-gimmeproxy example snippets
use Xchimx\GimmeProxy\Facades\GimmeProxy;
class GimmeProxyController extends Controller
{
public function getProxy()
{
return GimmeProxy::getProxy([
'amount' => 5,
'api_key' => 'YOUR-API-KEY', //but you don't need any
'maxCheckPeriod' => 600,
'protocol' => 'http',
'anonymityLevel' => 1,
'user-agent' => true,
'ipPort' => 'true',
]);
}
}