承接 salaun/geonames 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

salaun/geonames

Composer 安装命令:

composer require salaun/geonames

包简介

Geonames importer and models for Eloquent ORM. This repo is a fork from Yurtesen/Geonames.

README 文档

README

License

This package provides a way to import/update a local copy of GeoNames databases. The data is retrieved from GeoNames text file export on a public server. You are welcome to read GeoNames README for more informations on this service.

Installation

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

You can install the package via composer:

composer require salaun/geonames

You can publish and run the migrations with:

php artisan vendor:publish --provider="Salaun\Geonames\GeonamesServiceProvider" --tag="geonames-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Salaun\Geonames\GeonamesServiceProvider" --tag="geonames-config"

This is the contents of the published config file:

return [
];

Usage

Please see the wiki for further information.

Provided Eloquent Models

Please see the Wiki pages for implementation details.

NameKeyRelationsScopes
GeonamesGeonamegeoname_idalternateName, timeZone,countryadmin1,city,countryInfo
GeonamesAlternateNamegeoname_idgeoname
GeonamesCountryInfoisotimezone,continent
GeonamesFeatureCodecode
GeonamesLanguageCodeiso_639_3
GeonamesTimezonetimezone_id
GeonamesHierarchyparent_id
GeonamesAdmin1Codegeoname_idgeoname,hierarchies
GeonamesAdmin2Codegeoname_idgeoname,hierarchies

Tables

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

FilenameTablename
timeZones.txtgeonames_timezones
allCountries.zipgeonames_geonames
countryInfo.txtgeonames_country_infos
iso-languagecodes.txtgeonames_language_codes
alternateNames.zipgeonames_alternate_names
hierarchy.zipgeonames_hierarchies
admin1CodesASCII.txtgeonames_admin1_codes
admin2Codes.txtgeonames_admin2_codes
featureCodes_en.txtgeonames_feature_codes

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2021-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固