PHPackages                             yurtesen/geonames - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. yurtesen/geonames

ActiveLibrary[Database &amp; ORM](/categories/database)

yurtesen/geonames
=================

Geonames importer and models for Eloquent ORM

v0.1.5(5y ago)311.7k8[1 issues](https://github.com/yurtesen/geonames/issues)GPL-3.0PHP

Since Mar 16Pushed 2y ago5 watchersCompare

[ Source](https://github.com/yurtesen/geonames)[ Packagist](https://packagist.org/packages/yurtesen/geonames)[ RSS](/packages/yurtesen-geonames/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Laravel / Lumen / Eloquent Geonames
===================================

[](#laravel--lumen--eloquent-geonames)

[![Latest Stable Version](https://camo.githubusercontent.com/981079d39328992c98b4ede472b6c10eee50b2152fab9b66e8f900e93c59a55b/68747470733a2f2f706f7365722e707567782e6f72672f797572746573656e2f67656f6e616d65732f762f737461626c65)](https://packagist.org/packages/yurtesen/geonames)[![Latest Unstable Version](https://camo.githubusercontent.com/73d6d55af5271342c43493af1f069c4d6e57bee0d9076122527b05893b0fb12c/68747470733a2f2f706f7365722e707567782e6f72672f797572746573656e2f67656f6e616d65732f762f756e737461626c65)](https://packagist.org/packages/yurtesen/geonames)[![Monthly Downloads](https://camo.githubusercontent.com/44e57bb4722cefec9b6a3652f04d3efce83222d81fa1f8ecd2beb8e0c5da12aa/68747470733a2f2f706f7365722e707567782e6f72672f797572746573656e2f67656f6e616d65732f642f6d6f6e74686c79)](https://packagist.org/packages/yurtesen/geonames)[![Total Downloads](https://camo.githubusercontent.com/68f05bb9f4b292931947f32458d64c250783651374344c3770b54ce462d169d7/68747470733a2f2f706f7365722e707567782e6f72672f797572746573656e2f67656f6e616d65732f642f746f74616c2e737667)](https://packagist.org/packages/yurtesen/geonames)[![Package for Laravel](https://camo.githubusercontent.com/51b3c6c5b108465a3899cfd038efe38ebfcf9be6ff82cb1065715bb7379d54d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b616765253230666f722d4c61726176656c2f4c756d656e2d626c75652e737667)](https://packagist.org/packages/yurtesen/geonames)[![License](https://camo.githubusercontent.com/064b7d94f57223e299806ed3cecc3be505085af85dc248ccb4ddf44a92e4904d/68747470733a2f2f706f7365722e707567782e6f72672f797572746573656e2f67656f6e616d65732f6c6963656e73652e737667)](https://packagist.org/packages/yurtesen/geonames)

This package provides probably the best Eloquent models, most complete SQL schemas and fastest Artisan commands to import/update a local copy of [GeoNames](http://www.geonames.org/) databases.

Installation
------------

[](#installation)

*Note:* If you are using Lumen. You have to first install [irazasyed/larasupport](https://github.com/irazasyed/larasupport) !

Please include the following require in your composer.json :

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

```

or install using command line :

```
composer require yurtesen/geonames:dev-master

```

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

```
Yurtesen\Geonames\GeonamesServiceProvider::class,

```

or for Lumen add service provider in bootstrap\\app.php Remember that [irazasyed/larasupport](https://github.com/irazasyed/larasupport) must be registered before.

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

```

Usage and Configuration
-----------------------

[](#usage-and-configuration)

Please see the [wiki](https://github.com/yurtesen/geonames/wiki) for further information

Provided Eloquent Models
------------------------

[](#provided-eloquent-models)

Please see the *Wiki* pages for implementation details.

NameKeyRelationsScopesGeonamesGeonamegeoname\_idalternateName, timeZone,countryadmin1,city,countryInfoGeonamesAlternateNamegeoname\_idgeonameGeonamesCountryInfoisotimezone,continentGeonamesFeatureCodecodeGeonamesLanguageCodeiso\_639\_3GeonamesTimezonetimezone\_idGeonamesHierarchyparent\_idGeonamesAdmin1Codegeoname\_idgeoname,hierarchiesGeonamesAdmin2Codegeoname\_idgeoname,hierarchiesTables
------

[](#tables)

GeoNames file names and corresponding table names created in your database.

FilenameTablenametimeZones.txtgeonames\_timezonesallCountries.zipgeonames\_geonamescountryInfo.txtgeonames\_country\_infosiso-languagecodes.txtgeonames\_language\_codesalternateNames.zipgeonames\_alternate\_nameshierarchy.zipgeonames\_hierarchiesadmin1CodesASCII.txtgeonames\_admin1\_codesadmin2Codes.txtgeonames\_admin2\_codesfeatureCodes\_en.txtgeonames\_feature\_codesIf You Need Help
----------------

[](#if-you-need-help)

Please check the [wiki](https://github.com/yurtesen/geonames/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.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~257 days

Total

6

Last Release

2059d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9245e803fdad5f9357b7cf0b772fba13d4c0a63b0e570317536ab666b717fbad?d=identicon)[yurtesen](/maintainers/yurtesen)

---

Top Contributors

[![yurtesen](https://avatars.githubusercontent.com/u/1926599?v=4)](https://github.com/yurtesen "yurtesen (63 commits)")[![denmasyarikin](https://avatars.githubusercontent.com/u/18554343?v=4)](https://github.com/denmasyarikin "denmasyarikin (4 commits)")[![mgrenierfarmmedia](https://avatars.githubusercontent.com/u/61982777?v=4)](https://github.com/mgrenierfarmmedia "mgrenierfarmmedia (1 commits)")

---

Tags

laraveleloquentlocationcountrycitytimezonegeonames

### Embed Badge

![Health badge](/badges/yurtesen-geonames/health.svg)

```
[![Health](https://phpackages.com/badges/yurtesen-geonames/health.svg)](https://phpackages.com/packages/yurtesen-geonames)
```

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)[nevadskiy/laravel-geonames

Populate your database using the GeoNames service.

2715.1k](/packages/nevadskiy-laravel-geonames)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
