定制 brocard/geolocation 二次开发

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

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

brocard/geolocation

Composer 安装命令:

composer require brocard/geolocation

包简介

Set a geolocation tables for any projects

README 文档

README

Latest Version on Packagist GitHub license Total Downloads StyleCI

Add the Geoname service provider to the config/app.php file in the providers array:

'providers' => [
    // Laravel Framework Service Providers...
    //...

    // Package Service Providers
    BrocardJr\Geo\GeoServiceProvider::class,
    // ...

    // Application Service Providers
    // ...
],

For first instance you only need set enviroment variable intro .env file in root directoy

example:  GEONAMES_USERNAME=your_username

You may easily access your configuration values using the global config helper function only run the next artisan command

php artisan vendor:publish --provider="BrocardJr\Geo\GeoServiceProvider"

Reload de config for some changes

php artisan vendor:publish --provider="BrocardJr\Geo\GeoServiceProvider" --tag=config --force

Install migrations

php artisan geo:install

Get countries from api.geonames.org

php artisan geo:import-countries

Get states from api.geonames.org

php artisan geo:import-states

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固