derekisbusy/yii2-geo

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

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2019-07-17 18:20 UTC

This package is not auto-updated.

Last update: 2022-08-06 08:03:16 UTC


README

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

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"derekisbusy/yii2-geo": "*"

to the require section of your composer.json file.

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:

$ 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.

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

Usage

Once the extension is installed, simply use it in your code by :

<?= \derekisbusy\geo\AutoloadExample::widget(); ?>```