amstr1k / yii2-geography
Geography module with countries and cities of GEONAMES
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 3
Open Issues: 1
Type:yii2-extension
Requires
- ext-zlib: >=1.1.0
- kartik-v/yii2-widget-select2: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-25 04:16:44 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist amstr1k/yii2-geography "*"
or add
"amstr1k/yii2-geography": "*"
to the require section of your composer.json
file.
Configuration
Add yii2-geography to module section of each application config:
'modules' => [ 'geography' => [ 'class' => 'amstr1k\geography\Module' ], ]
Add yii2-geography to console config:
'geonames-integration'=>[ 'class'=>'amstr1k\geography\commands\GeoNamesController' ],
Apply migrations with console command
yii migrate --migrationPath=@amstr1k/geography/migrations
Run command to import countries and cities
yii geonames-integration