2017 © Pedro Peláez
 

yii2-extension yii2-vnlocation

Flexible Viet Nam location module for Yii2

image

dungphanxuan/yii2-vnlocation

Flexible Viet Nam location module for Yii2

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

, (*1)

Yii 2 Viet Nam Location


Requirements

  • yii2-widget-depdrop
  • yii2-widget-select2

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require  dungphanxuan/yii2-vnlocation=dev-master

or add, (*4)

"dungphanxuan/yii2-vnlocation": "@dev"

to the require section of your composer.json., (*5)

Then init migrate for setup table, (*6)

  • yii migrate --migrationPath=@vendor/dungphanxuan/yii2-vnlocation/migrations

Configure

NOTE: Make sure that you don't have go component configuration in your config files., (*7)

Add following lines to your main configuration file:, (*8)

'modules' => [
    'go' => [
        'class' => 'dungphanxuan\vnlocation\Module',
    ],
],

Import data

Fill console config:, (*9)

'controllerMap' => [
        'location-import' => [
            'class' => \dungphanxuan\vnlocation\commands\ImportController::className(),
        ],
    ],

Run:, (*10)

# Process and exit on finish
./yii location-import

Demo Location

Access router /go/demo-location to see result, (*11)

Todo

  • Init Migrate
  • Init Region
  • Init City
  • Init District
  • Init Ward
  • Seed Data

Screenshots

Demo Image, (*12)

The Versions