PHPackages                             khaleejinfotech/ip2location - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. khaleejinfotech/ip2location

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

khaleejinfotech/ip2location
===========================

Laravel package to determine location using ip address with lat-long and proxy

v1(3y ago)015MITPHP

Since Jan 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ibilalkhilji/ip2location)[ Packagist](https://packagist.org/packages/khaleejinfotech/ip2location)[ RSS](/packages/khaleejinfotech-ip2location/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

IP2Location Laravel Package
===========================

[](#ip2location-laravel-package)

IP2Location Laravel extension enables the user to find the country, region, city, coordinates, time zone, ISP from IP address using VPNAPI.io.

*Note: This extension works in Laravel 8 and Laravel 9.*

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

[](#installation)

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

After you have installed the package, open your Laravel config file config/app.php and add the following lines.

In the $providers array add the service providers for this package.

```
Khaleejinfotech\IP2Location\IP2LocationServiceProvider::class,

```

Publish the config file with

```
php artisan vendor:publish --tag="ip2location"

```

Open the **config/ip2location.php** in any text editor and add your api key obtained from vpnapi.io

```
