PHP code example of v.chetkov / get-proxy-list-client
1. Go to this page and download the library: Download v.chetkov/get-proxy-list-client 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/ */
v.chetkov / get-proxy-list-client example snippets
use Chetkov\GetProxyListClient\DTO\FilterParams;use Chetkov\GetProxyListClient\Factory\ClientFactory;
$client = ClientFactory::create();
$filter = (new FilterParams())
->setApiKey('api_key')
->setLastTested(600)
->setPortList([80, 8080])
->setProtocolList(['http']);
$proxy = $client->getProxy($filter);
$proxyList = $client->getList($filter);