nbz4live/laravel-geoip2
GeoIP2 for Laravel 5.4+
Installation
- In order to install run the following composer command:
composer require nbz4live/laravel-geoip2
Laravel 5.5+ Install skip to step 4.
- Open your
config/app.phpand add the following to theprovidersarray:
Nbz4live\LaravelGeoIP2\ServiceProvider::class,
- In the same config/app.php and add the following to the aliases array:
'GeoIP2' => Nbz4live\LaravelGeoIP2\Facades\GeoIP2::class,
- You can publish the config file by running (optional):
$ php artisan vendor:publish --provider="Nbz4live\LaravelGeoIP2\ServiceProvider"
- Run the update command to download the latest required databases
$ php artisan geoip:update
Related Packages
pixxet/laravel-geoip-world-cities
Laravel GeoIP World Cities provides MaxMind Free World Cities Database for larav...
145
0
moharrum/laravel-geoip-world-cities
Laravel GeoIP World Cities provides MaxMind Free World Cities Database for larav...
8,019
2
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.5 | >=7.2 | ^5.0| | MIT | |
| 1.0.4 | >=7.2 | ^5.0| | MIT | |
| 1.0.3 | >=7.2 | ^5.0| | MIT | |
| 1.0.2 | >=5.4.0 | ^5.0| | MIT | |
| 1.0.1 | >=5.4.0 | ~5.0 | MIT | |
| 1.0.0 | >=5.4.0 | ~5.0 | MIT |