dungphanxuan / yii2-vnlocation
Flexible Viet Nam location module for Yii2
Installs: 149
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 2
Type:yii2-extension
Requires
- kartik-v/dependent-dropdown: @dev
- kartik-v/yii2-widget-depdrop: @dev
- kartik-v/yii2-widget-select2: @dev
- yiisoft/yii2: ^2.0.0
- yiisoft/yii2-authclient: ^2.1.0
- yiisoft/yii2-bootstrap: ^2.0.0
- yiisoft/yii2-swiftmailer: ^2.0.0
This package is not auto-updated.
Last update: 2024-10-30 06:13:12 UTC
README
Yii 2 Viet Nam Location
Requirements
- yii2-widget-depdrop
- yii2-widget-select2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require dungphanxuan/yii2-vnlocation=dev-master
or add
"dungphanxuan/yii2-vnlocation": "@dev"
to the require section of your composer.json.
Then init migrate for setup table
- yii migrate --migrationPath=@vendor/dungphanxuan/yii2-vnlocation/migrations
Configure
NOTE: Make sure that you don't have
go
component configuration in your config files.
Add following lines to your main configuration file:
'modules' => [ 'go' => [ 'class' => 'dungphanxuan\vnlocation\Module', ], ],
Import data
Fill console config:
'controllerMap' => [ 'location-import' => [ 'class' => \dungphanxuan\vnlocation\commands\ImportController::className(), ], ],
Run:
# Process and exit on finish
./yii location-import
Demo Location
Access router /go/demo-location to see result
Todo
- Init Migrate
- Init Region
- Init City
- Init District
- Init Ward
- Seed Data