Download the PHP package aalfiann/pubproxy-class-php without Composer
On this page you can find all versions of the php package aalfiann/pubproxy-class-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aalfiann/pubproxy-class-php
More information about aalfiann/pubproxy-class-php
Files in aalfiann/pubproxy-class-php
Download aalfiann/pubproxy-class-php
More information about aalfiann/pubproxy-class-php
Files in aalfiann/pubproxy-class-php
Vendor aalfiann
Package pubproxy-class-php
Short Description Get working public proxy list for free by PubProxy (No API key required).
License MIT
Package pubproxy-class-php
Short Description Get working public proxy list for free by PubProxy (No API key required).
License MIT
Please rate this library. Is it a good library?
Informations about the package pubproxy-class-php
PubProxy Class PHP
Get working public proxy list for free by PubProxy (No API key required).
Known Limitations
As free user, there is only 50 request a day. So we cached the request per 30minutes to save your quota.
We recommend you to buy the premium proxy to get the best experience, realtime and unlimited.
Installation
Install this package via Composer.
Usage
Get Proxy (Rotate Automatically)
Get Proxy List
Get Proxy List with Custom Options
Chain Usage Example
Properties PubProxy
$api='',$level='',$type='',$country='',$not_country='',$port='',$google='',$https='',$post='',$user_agent='',$cookies='',$referer='',$limit=5,$last_check=0,$speed=0;
Properties Feature
$refresh=1800,$dircache='',$filepath='',$proxy='',$proxyauth='',$response,$resultArray=null;
Chain Function
- setApi($api='') this will make your request realtime and unlimited by buying PubProxy Premium.
- setLimit($limit=5) this will display proxies by limit number. Default is 5.
- setType($type='') this will display proxies by proxy protocol (socks4, socks5 and http).
- setLevel($level='') this will display proxies by anonymity level (anonymous and elite).
- setLastCheck($last_check=0) this will display proxies which is how long minutes the proxy was last checked?
- setSpeed($speed=0) this will display proxy which is how many seconds it takes for the proxy to connect?
- setCountry($country='') this will display proxy from country that we wanted (input multiple with separated commas).
- setNotCountry($not_country='') this will display avoided proxy countries (input multiple with separated commas).
- setPort($port='') this will display proxies with a specific port (input multiple with separated commas).
- setGoogle($google='') this will display proxies which is Google passed proxies.
- setHttps($https='') this will display proxies which is supports HTTPS request.
- setPost($post='') this will display proxies which is supports POST request.
- setUserAgent($user_agent='') this will display proxies which is supports USER_AGENT request.
- setCookies($cookies='') this will display proxies which is supports COOKIES request.
- setReferer($referer='') this will display proxies which is supports REFERER request.
- setRefresh($refresh=1800) this will cache the proxy. Default is 1800 seconds (every 30minutes proxy will refresh automatically).
- setDirCache($dircache='') this will set directory location without change the default filename cache. Default is "cache-proxy".
- setFilepath($filepath='') this will create custom file cache. Default is "cache-proxy/{{md5}}.cache".
Main Function
- make() Make process to get proxy list response.
- getJson() Get response as json format.
- getText() Get response as text/plain format
- getProxy() Get single proxy (ip:port and rotate automatically if the proxy limit is more than 1)
Cache Function
- isHit() to check the cached proxy list is still valid or not
- fetch() to fetch the cached proxy list
- write($content) to write proxy list data to file cache.
- clear() to clear the file cache
All versions of pubproxy-class-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package aalfiann/pubproxy-class-php contains the following files
Loading the files please wait ....