2017 © Pedro Peláez
 

yii2-extension yii2-geo

Country, state, county, city and zip codes with CRUD controls.

image

derekisbusy/yii2-geo

Country, state, county, city and zip codes with CRUD controls.

  • Wednesday, May 10, 2017
  • by derekisbusy
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

Geographical Locations

Country, state, county, city and zip codes with CRUD controls., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist derekisbusy/yii2-geo "*"

or add, (*4)

"derekisbusy/yii2-geo": "*"

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

Update database schema

The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured db application component and run the following command:, (*6)

$ php yii migrate/up --migrationPath=@vendor/derekisbusy/yii2-geo/migrations

Since there are lots of records in the migrations you may need to temporarily remove the memory limit in your yii file by adding the following., (*7)

php_ini('memory_limit', '-1');

Usage

Once the extension is installed, simply use it in your code by :, (*8)

php <?= \derekisbusy\geo\AutoloadExample::widget(); ?>, (*9)

The Versions

10/05 2017