phoenix404/php-proxiest

get proxy

This package's canonical repository appears to be gone and the package has been frozen as a result.

v2.0 2018-02-03 14:44 UTC

This package is auto-updated.

Last update: 2019-11-24 20:09:49 UTC


README

Use php-proxiest for..........

(use your own risk)

Installation

composer

composer require phoenix404/php-proxiest dev-master

git

git clone https://github.com/Phoenix404/php-proxiest.git

Usage

basic use

Get working proxy...

include ("Lib-Location/Src/Proxy.php");
$proxy  = new Proxy();
$IP  = $proxy->getWorkingProxy(true);
echo $IP;

Get next working proxy..

include ("Lib-Location/Src/Proxy.php");
$proxy  = new Proxy();
$IP  = $proxy->getNextWorkingProxy(true);
echo $IP;

To use Php-proxiest Lib, you have to download new proxies also. Thanks to gimmeproxy,pubproxy etc where you can download new proxies. It can be done with some download function implemented in lib:

  • downloadAPIsProxies
  • downloadForceProxies
  • downloadNewOne
  • downloadAllProxies
  • downloadAndUpdateAllProxies
downloadAPIsProxies

Maximum 440 Ips can download in a day downloadAPIsProxies($num = 10, $ips = "")

Parameter valueType exmple Description
$num Integer range(1,120) Download x ip
$ips String or array any valid IPs You can leave empty. This param is used to download new proxies using other ips
include ("Lib-Location/Src/Proxy.php");
$proxy  = new Proxy();
$proxy->downloadAPIsProxies(10);
$IP  = $proxy->getNextWorkingProxy(true);
echo $IP;
downloadForceProxies

Takes a lot of time to download new proxies.

downloadAPIsProxies($ips = "")

Parameter valueType exmple Description
$ips String or array any valid IPs You can leave empty. This param is used to download new proxies using other ips
include ("Lib-Location/Src/Proxy.php");
$proxy  = new Proxy();
$proxy->downloadForceProxies();
$IP  = $proxy->getNextWorkingProxy(true);
echo $IP;
downloadNewOne

Takes a lot of time to download new proxies.

downloadAPIsProxies($ips = "")

Parameter valueType exmple Description
$ips String or array any valid IPs You can leave empty. This param is used to download new proxies using other ips
include ("Lib-Location/Src/Proxy.php");
$proxy  = new Proxy();
$proxy->downloadAPIsProxies(10);
$IP  = $proxy->getNextWorkingProxy(true);
echo $IP;