2017 © Pedro Peláez
 

library geonames

Geonames importer and models for Eloquent ORM

image

yurtesen/geonames

Geonames importer and models for Eloquent ORM

  • Sunday, December 17, 2017
  • by yurtesen
  • Repository
  • 5 Watchers
  • 19 Stars
  • 712 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Laravel / Lumen / Eloquent Geonames

Latest Stable Version Latest Unstable Version Monthly Downloads Total Downloads Package for Laravel License, (*1)

This package provides probably the best Eloquent models, most complete SQL schemas and fastest Artisan commands to import/update a local copy of GeoNames databases., (*2)

Installation

Note: If you are using Lumen. You have to first install irazasyed/larasupport !, (*3)

Please include the following require in your composer.json :, (*4)

{
    "require": {
        "yurtesen/geonames": "dev-master"
    }
}

or install using command line :, (*5)

composer require yurtesen/geonames:dev-master

after installation, you will need to add the service provider in your config\app.php to 'providers' array, (*6)

Yurtesen\Geonames\GeonamesServiceProvider::class,

or for Lumen add service provider in bootstrap\app.php Remember that irazasyed/larasupport must be registered before., (*7)

$app->register(Yurtesen\Geonames\GeonamesServiceProvider::class);

Usage and Configuration

Please see the wiki for further information, (*8)

Provided Eloquent Models

Please see the Wiki pages for implementation details., (*9)

Name Key Relations Scopes
GeonamesGeoname geoname_id alternateName, timeZone,country admin1,city,countryInfo
GeonamesAlternateName geoname_id geoname
GeonamesCountryInfo iso timezone,continent
GeonamesFeatureCode code
GeonamesLanguageCode iso_639_3
GeonamesTimezone timezone_id
GeonamesHierarchy parent_id
GeonamesAdmin1Code geoname_id geoname,hierarchies
GeonamesAdmin2Code geoname_id geoname,hierarchies

Tables

GeoNames file names and corresponding table names created in your database., (*10)

Filename Tablename
timeZones.txt geonames_timezones
allCountries.zip geonames_geonames
countryInfo.txt geonames_country_infos
iso-languagecodes.txt geonames_language_codes
alternateNames.zip geonames_alternate_names
hierarchy.zip geonames_hierarchies
admin1CodesASCII.txt geonames_admin1_codes
admin2Codes.txt geonames_admin2_codes
featureCodes_en.txt geonames_feature_codes

If You Need Help

Please check the wiki for more information about how to utilize the package efficiently and usage examples. If something does not work or if you have a suggestion, please do not hesitate to use the issue tracker., (*11)

The Versions

17/12 2017

dev-master

9999999-dev

Geonames importer and models for Eloquent ORM

  Sources   Download

GPL-3.0

The Requires

 

by Evren Yurtesen

laravel eloquent city timezone country geonames location

17/12 2017

v0.1.1

0.1.1.0

Geonames importer and models for Eloquent ORM

  Sources   Download

GPL-3.0

The Requires

 

by Evren Yurtesen

laravel eloquent city timezone country geonames location

16/03 2017

v0.1

0.1.0.0

Geonames importer and models for Eloquent ORM

  Sources   Download

GPL-3.0

The Requires

 

by Evren Yurtesen

laravel eloquent city timezone country geonames location