amstr1k/yii2-geography
Composer 安装命令:
composer require amstr1k/yii2-geography
包简介
Geography module with countries and cities of GEONAMES
README 文档
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
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-04