PHPackages                             ip2location/ip2proxy-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. ip2location/ip2proxy-laravel

ActiveLibrary[Security](/categories/security)

ip2location/ip2proxy-laravel
============================

Allows user to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.

1.1.5(7mo ago)1070.7k↓54.9%4MITPHPPHP &gt;=5.4

Since Oct 3Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/ip2location/ip2proxy-laravel)[ Packagist](https://packagist.org/packages/ip2location/ip2proxy-laravel)[ RSS](/packages/ip2location-ip2proxy-laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

IP2Proxy Laravel Extension
==========================

[](#ip2proxy-laravel-extension)

[![Latest Stable Version](https://camo.githubusercontent.com/3bd288926b488cd09c14b412a66798b21ae14e2205824dae7997178507308fcd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6970326c6f636174696f6e2f69703270726f78792d6c61726176656c2e737667)](https://packagist.org/packages/ip2location/ip2proxy-laravel)[![Total Downloads](https://camo.githubusercontent.com/6c5fa1540ffdf61c3d733e570784fc1c25f0e9455caeb204c256dd1be594a913/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6970326c6f636174696f6e2f69703270726f78792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ip2location/ip2proxy-laravel)

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, Laravel 11 and Laravel 12.*

INSTALLATION
------------

[](#installation)

Run the command: `composer require ip2location/ip2proxy-laravel` to download the package into the Laravel platform.

USAGE
-----

[](#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

[](#bin-database)

1. Download IP2Proxy BIN database
    - IP2Proxy free LITE database at
    - IP2Proxy commercial database at
2. To use IP2Proxy databases, create a folder named as `ip2proxy` in the `database` directory.
3. Unzip and copy the BIN file into `database/ip2proxy/` folder.
4. Rename the BIN file to IP2PROXY.BIN.
5. Create a **TestController** in Laravel using the below command line

```
php artisan make:controller TestController

```

6. Open the **app/Http/Controllers/TestController.php** in any text editor.
7. To use IP2Proxy databases, add the below lines into the controller file

```
