girotecnics/geonames 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

girotecnics/geonames

Composer 安装命令:

composer require girotecnics/geonames

包简介

Geonames importer and models for Eloquent ORM based on yurtesen/geonames

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

This package provides probably the best Eloquent models, most complete SQL schemas and fastest Artisan commands to import/update a local copy of GeoNames databases.

Installation

Please include the following require in your composer.json :

{
    "require": {
        "girotecnics/geonames": "~1.1"
    }
}

or install using command line :

composer require "girotecnics/geonames" "~1.1"

after installation, you will need to add the service provider in your config\app.php to 'providers' array

Girotecnics\Geonames\GeonamesServiceProvider::class,

and execute installation, download and seed

php artisan geonames:install
php artisan migrate
php artisan geonames:seed

Note: If you are using Lumen. You have to first install irazasyed/larasupport !

Usage and Configuration

Please see the wiki for further information

Provided Eloquent Models

Please see the Wiki pages for implementation details.

Name Key Relations Scopes
GeonamesGeoname geoname_id alternateName, timeZone,country admin1,city,countryInfo
GeonamesAlternateName geoname_id geoname
GeonamesCountryInfo iso timezone,continent
GeonamesFeatureCode code
GeonamesLanguageCode iso_639_3
GeonamesTimezone timezone_id
GeonamesHierarchy parent_id
GeonamesAdmin1Code geoname_id geoname,hierarchies
GeonamesAdmin2Code geoname_id geoname,hierarchies

Tables

GeoNames file names and corresponding table names created in your database.

Filename Tablename
timeZones.txt geonames_timezones
allCountries.zip geonames_geonames
countryInfo.txt geonames_country_infos
iso-languagecodes.txt geonames_language_codes
alternateNames.zip geonames_alternate_names
hierarchy.zip geonames_hierarchies
admin1CodesASCII.txt geonames_admin1_codes
admin2Codes.txt geonames_admin2_codes
featureCodes_en.txt geonames_feature_codes

If You Need Help

Please check the wiki for more information about how to utilize the package efficiently and usage examples. If something does not work or if you have a suggestion, please do not hesitate to use the issue tracker.

Note: If you are using Lumen. You have to first install irazasyed/larasupport !

统计信息

  • 总下载量: 505
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2017-07-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固