yii2-geodb

The yii2-geodb geographical database, covers all countries and more than four million cities

  • Owner: lembdev/yii2-geodb
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

yii2-geodb

The yii2-geodb geographical database, covers all countries and more than four million cities
Based upon geodb database (http://download.geodb.org/export/dump).

Provide RESTful controllers for:

  • Countries
  • Regions
  • Cities
  • Cities names
  • Timezones

Provide controller for Select2 input widget

Requirements

  • The minimum requirement by Yii is that your Web server supports PHP 5.5.
  • PHP extention ext-zip
  • memory_limit set to >= 128Mb

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-source "lembadm/yii2-geodb" "dev-master"

or add

"lembadm/yii2-geodb": "dev-master"

to the require section of your composer.json file.

Add to config/web.php and config/console.php

'modules' => [
    ...
    'geo' => 'lembadm\geodb\Module',
    ...
],

Then run the migration

./yii migrate/up --migrationPath='@vendor/lembadm/yii2-geodb/migrations'

Usage

See demo folder

Contributors

License

This work is licensed under a Creative Commons Attribution 3.0 License,
see (http://creativecommons.org/licenses/by/3.0/)
The Data is provided "as is" without warranty or any representation of accuracy, timeliness or completeness.

Comments / Suggestions

Please provide any helpful feedback or requests.

Sorry for my English. Thanks.

Main metrics

Overview
Name With Ownerlembdev/yii2-geodb
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:
所有者活动
Created At2016-04-13 19:00:50
Pushed At2016-05-14 22:28:08
Last Commit At2016-05-15 01:28:06
Release Count1
Last Release Name1.0.0 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count2
Watchers Count3
Fork Count0
Commits Count3
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private