2017 © Pedro Peláez
 

library geolocation

Set a geolocation tables for any projects

image

brocard/geolocation

Set a geolocation tables for any projects

  • Friday, July 7, 2017
  • by brocard
  • Repository
  • 2 Watchers
  • 1 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Library to fetch data from geonames.org

Latest Version on Packagist GitHub license Total Downloads StyleCI, (*1)

Add the Geoname service provider to the config/app.php file in the providers array:, (*2)

'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, (*3)

example:  GEONAMES_USERNAME=your_username

You may easily access your configuration values using the global config helper function only run the next artisan command, (*4)

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

Reload de config for some changes, (*5)

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

Install migrations, (*6)

php artisan geo:install

Get countries from api.geonames.org, (*7)

php artisan geo:import-countries

Get states from api.geonames.org, (*8)

php artisan geo:import-states

The Versions

07/07 2017

dev-master

9999999-dev

Set a geolocation tables for any projects

  Sources   Download

MIT

The Requires

 

by Yusniel Brocard

laravel package geonames laravel 5.3 brocard

07/07 2017

dev-analysis-XZ2x9R

dev-analysis-XZ2x9R

Set a geolocation tables for any projects

  Sources   Download

MIT

The Requires

 

by Yusniel Brocard

laravel package geonames laravel 5.3 brocard

04/07 2017

v0.4

0.4.0.0

Set a geolocation tables for any projects

  Sources   Download

MIT

The Requires

 

by Yusniel Brocard

laravel package geonames laravel 5.3 brocard

31/03 2017

dev-analysis-q134MP

dev-analysis-q134MP

Set a geolocation tables for any projects

  Sources   Download

MIT

The Requires

 

by Yusniel Brocard

laravel package geonames laravel 5.3 brocard

02/02 2017

v0.3

0.3.0.0

Set a geolocation tables for any projects

  Sources   Download

MIT

The Requires

 

by Yusniel Brocard

laravel package geonames laravel 5.3 brocard