定制 ckcnet/laravel-world-cities 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ckcnet/laravel-world-cities

Composer 安装命令:

composer require ckcnet/laravel-world-cities

包简介

Laravel Package from which you can store and search any cities in the world based on geonames.org data

README 文档

README

Instructions

Add to dependencies

composer require ckcnet/laravel-world-cities

Load the files from geonames.org

php artisan lwc:download

If you want to only download specific countries:

php artisan lwc:download --countries=US,GB

Insert the cities in the database

First, you need to migrate to create the new lwc_cities and lwc_admin_zones table:

php artisan migrate

Then, insert the cities in your lwc_cities table:

php artisan lwc:seed

This command will only work if you have not specified any countries in previous step. If you did, use this command instead:

php artisan lwc:seed --countries=US,GB

Import postal codes if you need to use them

France

php artisan lwc:postalcodes:fr

Usage

Cities are stored in the lwc_cities table, under the Laravel Model CkcNet\LaravelWorldCities\Models\LwcCity

Administrative zones are stored in the lwc_admin_zones table, under the Laravel Model CkcNet\LaravelWorldCities\Models\LwcAdminZones

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固