rapttor/proxy
Composer 安装命令:
composer require rapttor/proxy
包简介
Proxy list retrieve and provide
README 文档
README
renew proxies:
occasionally, recommended once a hour run loadAll method the list will invalidate once a day, and will get re-loaded.
$p=new \RapTToR\Proxy; $P->loadAll(); run/get a proxy:
get multiple proxies
$proxies = (new \RapTToR\Proxy)->getAll( array( "countries"=>array("ca","us), // one or more criteria below: // "speed"=>"100", // all lower response than 100ms // "uptime"=>"90", // all uptime larger than 90% // "anonimity"=>"anonimous", // "scheme"=>"socks4", ) ); later use
$proxy=$proxies(array_rand($proxies));
get one proxy (no parameters required, but can use all of them combines)
$proxy = (new \RapTToR\Proxy)->get( array( "country" => "ca" // "countries"=>array("ca","us), // "speed"=>"100", // all lower response than 100ms // "uptime"=>"90", // all uptime larger than 90% // "anonimity"=>"anonimous", // "scheme"=>"socks4", ) ); response:
array(4) { ["scheme"]=> string(6) "socks4" ["ip"]=> string(13) "192.99.201.39" ["port"]=> string(5) "18336" ["country"]=> string(2) "CA" }
todo:
- adding more sources
- keep and validate logs
- optimization
- unit-Testing with PHPUnit [in progress]
changelog
- Sep 29. 2023 : First public release
- Sep 21. 2023 : first draft of the class
links
licence
install
composer require rapttor/proxy or
"require": { "rapttor/proxy": "dev-master" }, "repositories":[ { "type": "vcs", "url": "https://github.com/rapttor/proxy.git" } ] 统计信息
- 总下载量: 8.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-01-04