chetkov/get-proxy-list-client

https://getproxylist.com/ API 的 PHP 客户端

v0.0.4 2022-03-30 05:59 UTC

This package is auto-updated.

Last update: 2024-08-29 05:24:36 UTC


README

PHP 对 https://getproxylist.com/ API 的封装

安装

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