Skip to content

amstr1k/yii2-geography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geography module for Yii 2

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages