PHPackages                             saeedvaziry/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. saeedvaziry/ip2location

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

saeedvaziry/ip2location
=======================

IP to Location database

v0.2.0(7mo ago)322.2k1MITPHPPHP ^7.1|^8.0CI passing

Since Oct 31Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/saeedvaziry/ip2location)[ Packagist](https://packagist.org/packages/saeedvaziry/ip2location)[ GitHub Sponsors](https://github.com/saeedvaziry)[ Fund](https://ko-fi.com/saeedvaziry)[ RSS](/packages/saeedvaziry-ip2location/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#laravel-ip2location-package)

[![](https://camo.githubusercontent.com/9a9f7b8725c5807e6900a77884f24918f6e70365eb1e00e8d4ccf35d2c052b21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736165656476617a6972792f6970326c6f636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/saeedvaziry/ip2location)[![](https://github.com/saeedvaziry/ip2location/workflows/Test/badge.svg)](https://github.com/saeedvaziry/ip2location/workflows/Test/badge.svg)[![StyleCI](https://camo.githubusercontent.com/4fec76e80d8e92d8480ae3c7817519cee2b2e7328abbc10695f88ca2531fd362/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3330383735383332332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/308758323?branch=master)[![](https://camo.githubusercontent.com/a2c93a3c2b6299eab51044d1e784f8d4b1967452e09a648d92971cd706d62ea3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736165656476617a6972792f6970326c6f636174696f6e)](https://camo.githubusercontent.com/a2c93a3c2b6299eab51044d1e784f8d4b1967452e09a648d92971cd706d62ea3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736165656476617a6972792f6970326c6f636174696f6e)

IP2Location is a small Laravel package that converts IPs to location.

This package is a wrapper to [IP2Location](https://github.com/chrislim2888/IP2Location-PHP-Module).

Installation
------------

[](#installation)

```
composer require saeedvaziry/ip2location
```

Configuration
-------------

[](#configuration)

Publish configs with the following command

```
php artisan vendor:publish --provider="SaeedVaziry\IP2Location\IP2LocationServiceProvider"
```

Then modify `configs/ip2location.php` to set your download URL from IP2Location's website

```
