yii2-geodb
The yii2-geodb geographical database, covers all countries and more than four million cities
Based upon geodb database (http://download.geodb.org/export/dump)., (*1)
Provide RESTful controllers for:
* Countries
* Regions
* Cities
* Cities names
* Timezones, (*2)
Provide controller for Select2 input widget, (*3)
Requirements
- The minimum requirement by Yii is that your Web server supports PHP 5.5.
- PHP extention
ext-zip
-
memory_limit
set to >= 128Mb
Installation
The preferred way to install this extension is through composer., (*4)
Either run, (*5)
php composer.phar require --prefer-source "lembadm/yii2-geodb" "dev-master"
or add, (*6)
"lembadm/yii2-geodb": "dev-master"
to the require section of your composer.json
file., (*7)
Add to config/web.php
and config/console.php
, (*8)
'modules' => [
...
'geo' => 'lembadm\geodb\Module',
...
],
Then run the migration, (*9)
./yii migrate/up --migrationPath='@vendor/lembadm/yii2-geodb/migrations'
Usage
See demo folder, (*10)
Contributors
License
This work is licensed under a Creative Commons Attribution 3.0 License,
see (http://creativecommons.org/licenses/by/3.0/)
The Data is provided "as is" without warranty or any representation of accuracy, timeliness or completeness., (*11)
Please provide any helpful feedback or requests., (*12)
Sorry for my English. Thanks., (*13)