nbz4live/laravel-geoip2
Composer 安装命令:
composer require nbz4live/laravel-geoip2
包简介
Laravel wrapper for MaxMind GeoIP2
README 文档
README
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
统计信息
- 总下载量: 1.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-11