v.chetkov / get-proxy-list-client
PHP client for API of https://getproxylist.com/
v0.0.4
2022-03-30 05:59 UTC
Requires
- guzzlehttp/guzzle: ^7.4
- guzzlehttp/psr7: 2.1.1
- psr/http-client: ^1.0
This package is auto-updated.
Last update: 2024-11-29 05:51:19 UTC
README
PHP обёртка для API https://getproxylist.com/
Установка
composer require v.chetkov/get-proxy-list-client
Использование
<?php 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);
Более полную информацию о критериях фильтрации смотрите на сайте: https://getproxylist.com/#the-api