PHPackages                             adrianorosa/laravel-geolocation - 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. adrianorosa/laravel-geolocation

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

adrianorosa/laravel-geolocation
===============================

Laravel Geo Location package to get details for a given IP Address

v1.4.0(2mo ago)6593.3k↑13.7%151MITPHPPHP &gt;=7.2

Since Aug 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/adrianorsouza/laravel-geolocation)[ Packagist](https://packagist.org/packages/adrianorosa/laravel-geolocation)[ RSS](/packages/adrianorosa-laravel-geolocation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (13)Used By (1)

Laravel GeoLocation Package
===========================

[](#laravel-geolocation-package)

Laravel package to get the details about Region, City and Country for a given IP Address.

This package is a wrapper for [IpInfo](https://ipinfo.io) Provider, however we have plan to implement a driver for MaxMind GeoIP2 databases.

### Install

[](#install)

```
composer require adrianorosa/laravel-geolocation

```

> This package supports the latest version of Laravel, for now 5.8+ was tested, but older versions should work fine.

As of Laravel 5.5 there is no need to add the ServiceProvider within the `AppServiceProvider` array. Laravel loads this provider using Package Discovery.

### Usage

[](#usage)

There is no need to additional setup to start using, once you install it via composer you can call the Facade:

```
