Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derekisbusy/yii2-geo
Geographical locations with CRUD controls.
https://github.com/derekisbusy/yii2-geo
crud-controllers database-schema geographic-locations yii2 yii2-extension
Last synced: 2 days ago
JSON representation
Geographical locations with CRUD controls.
- Host: GitHub
- URL: https://github.com/derekisbusy/yii2-geo
- Owner: derekisbusy
- Created: 2017-01-10T06:37:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-17T18:21:12.000Z (over 5 years ago)
- Last Synced: 2024-10-10T22:21:01.581Z (28 days ago)
- Topics: crud-controllers, database-schema, geographic-locations, yii2, yii2-extension
- Language: PHP
- Size: 2.4 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Geographical Locations
=======================
Country, state, county, city and zip codes with CRUD controls.Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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:```bash
$ 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
php_ini('memory_limit', '-1');
```Usage
-----Once the extension is installed, simply use it in your code by :
```php
= \derekisbusy\geo\AutoloadExample::widget(); ?>```