承接 v360tech/geonames 相关项目开发

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

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

v360tech/geonames

最新稳定版本:11.1.0

Composer 安装命令:

composer require v360tech/geonames

包简介

A Laravel (php) package that interfaces with the geolocation services on geonames.org.

README 文档

README

A Laravel (php) package to interface with the geo-location services at geonames.org.

Installation

composer require v360tech/geonames

And then add geonames provider to providers array in app.php config file:

V360Tech\Geonames\GeonamesServiceProvider::class,

After that, Run migrate command:

php artisan migrate

Want to install all of the geonames records for the US, Canada, and Mexico as well as pull in the feature codes definitions file in English?

php artisan geonames:install --country=US --country=CA --country=MX --language=en

Want to just install everything in the geonames database?

php artisan geonames:install

Maintenance

Now that you have the geonames database up and running on your system, you need to keep it up-to-date.

I have an update script that you need to schedule in Laravel to run every day.

Assuming your servers are running on GMT, your update command would look like:

$schedule->command('geonames:update')->dailyAt('3:00');

The update artisan command will handle the updates and deletes to the geonames table.

By default, GeonamesServiceProvider will run it for you daily at config('geonames.update_daily_at').

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-01