Download the PHP package ip2location/ip2proxy-laravel without Composer
On this page you can find all versions of the php package ip2location/ip2proxy-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ip2proxy-laravel
IP2Proxy Laravel Extension
IP2Proxy Laravel extension enables the user to query an IP address if it was being used as VPN servers, open proxies, web proxies, Tor exit nodes, search engine robots, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks.
Note: This extension works in Laravel 6, Laravel 7, Laravel 8 and Laravel 9, Laravel 10 and Laravel 11.
INSTALLATION
Run the command: composer require ip2location/ip2proxy-laravel
to download the package into the Laravel platform.
USAGE
IP2Proxy Laravel extension is able to query the IP address proxy information from either BIN database or web service. This section will explain how to use this extension to query from BIN database and web service.
BIN DATABASE
- Download IP2Proxy BIN database
- IP2Proxy free LITE database at https://lite.ip2location.com
- IP2Proxy commercial database at https://www.ip2location.com/proxy-database
- To use IP2Proxy databases, create a folder named as
ip2proxy
in thedatabase
directory. - Unzip and copy the BIN file into
database/ip2proxy/
folder. - Rename the BIN file to IP2PROXY.BIN.
-
Create a TestController in Laravel using the below command line
- Open the app/Http/Controllers/TestController.php in any text editor.
-
To use IP2Proxy databases, add the below lines into the controller file
-
Add the following line into the routes/web.php file.
- Enter the URL
/test and run. You should see the information of 1.2.3.4 IP address.
WEB SERVICE
- To use IP2Location.io or IP2Proxy Web Service, create a new file called "site_vars.php" in
config
directory. - In the site_vars.php, save the following contents for IP2Location.io:
Or save the following contents for IP2Proxy:
-
Create a TestController in Laravel using the below command line
- Open the app/Http/Controllers/TestController.php in any text editor.
-
To use IP2Proxy Web Service, add the below lines into the controller file.
-
Add the following line into the routes/web.php file.
- Enter the URL
/test and run. You should see the information of 1.2.3.4 IP address.
DEPENDENCIES (IP2PROXY BIN DATA FILE)
This library requires IP2Proxy BIN data file to function. You may download the BIN data file at
- IP2Proxy LITE BIN Data (Free): https://lite.ip2location.com
- IP2Proxy Commercial BIN Data (Comprehensive): https://www.ip2location.com/proxy-database
SUPPORT
Email: [email protected]
Website: https://www.ip2location.com