PHP code example of stajor / proxy-fetcher
1. Go to this page and download the library: Download stajor/proxy-fetcher 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/ */
stajor / proxy-fetcher example snippets
$manager = new \ProxyFetcher\Manager();
// Filter proxies by country
$proxies = $manager->fetch(['country' => 'US']);
// Filter proxies by type
$proxies = $manager->fetch(['type' => 'SOCKS5']);
// Limit proxies results
$proxies = $manager->fetch(['limit' => 100]);