Download the PHP package slavkluev/yii2-ip2location without Composer
On this page you can find all versions of the php package slavkluev/yii2-ip2location. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slavkluev/yii2-ip2location
More information about slavkluev/yii2-ip2location
Files in slavkluev/yii2-ip2location
Package yii2-ip2location
Short Description A Yii2 extension allows you to get the user's location by IP address. Use a free Ip2Location LITE database. Auto-update database.
License MIT
Homepage https://github.com/slavkluev/yii2-ip2location
Informations about the package yii2-ip2location
yii2-ip2location
A Yii2 extension allows you to get the user's location by IP address. Use a free Ip2Location LITE database. Auto-update database.
Parameters
dbFile
Path to database file. Default:Yii::getAlias('@vendor/slavkluev/yii2-ip2location/database/DB.BIN')
downloadToken
Unique download token to download IP2Location databases.downloadCode
Database code for downloading. Default:DB1LITEBIN
.mode
Caching mode (one ofFILE_IO
,MEMORY_CACHE
, orSHARED_MEMORY
). Default:\IP2Location\Database::FILE_IO
.defaultFields
Field(s) to return. Default:\IP2Location\Database::ALL
.
Install
Package is available on Packagist, you can install it using Composer.
Usage
Add ip2location
component to your configuration file.
Get information on custom IP address:
Get information on user IP address:
Update
In order to update the database, a token is required. You can use the free database: IP2Location LITE BIN Data
To update the database, use the command:
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Viacheslav Kliuev
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of yii2-ip2location with dependencies
ext-zip Version *
guzzlehttp/guzzle Version ^6.5|^7.0
ip2location/ip2location-php Version ^8.2
yiisoft/yii2 Version ^2.0.13.1