dungphanxuan/yii2-vnlocation Flexible Viet Nam location module for Yii2

993323

Yii 2 Viet Nam Location

  1. Requirements
  2. Installation
  3. Configure
  4. Import data
  5. Demo Location
  6. Todo
  7. Screenshots

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

Screenshots

Demo Image

1 0
1 follower
149 downloads
Yii Version: 2.0
License: MIT
Category: Others
Developed by: dungphanxuan999
Created on: Mar 26, 2018
Last updated: (not set)
Packagist Profile
Github Repository