PHPackages                             paulintrognon/laravel-world-cities - 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. [Search &amp; Filtering](/categories/search)
4. /
5. paulintrognon/laravel-world-cities

ActiveLibrary[Search &amp; Filtering](/categories/search)

paulintrognon/laravel-world-cities
==================================

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

v3.2.2(6y ago)265[1 issues](https://github.com/paulintrognon/laravel-world-cities/issues)MITPHPPHP &gt;=5.5.9

Since Jan 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/paulintrognon/laravel-world-cities)[ Packagist](https://packagist.org/packages/paulintrognon/laravel-world-cities)[ Docs](https://github.com/paulintrognon/laravel-world-cities)[ RSS](/packages/paulintrognon-laravel-world-cities/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (14)Used By (0)

Laravel World Cities
====================

[](#laravel-world-cities)

Instructions
------------

[](#instructions)

### Add to dependencies

[](#add-to-dependencies)

```
composer require paulintrognon/laravel-world-cities

```

### Load the files from geonames.org

[](#load-the-files-from-geonamesorg)

```
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

[](#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

[](#import-postal-codes-if-you-need-to-use-them)

#### France

[](#france)

```
php artisan lwc:postalcodes:fr

```

Usage
-----

[](#usage)

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

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

12

Last Release

2340d ago

Major Versions

v0.1.0 → v1.0.02020-01-28

v1.0.0 → v2.0.02020-01-28

v2.2.0 → v3.0.02020-02-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1859396?v=4)[Paulin Trognon](/maintainers/paulintrognon)[@paulintrognon](https://github.com/paulintrognon)

---

Top Contributors

[![paulintrognon](https://avatars.githubusercontent.com/u/1859396?v=4)](https://github.com/paulintrognon "paulintrognon (49 commits)")

---

Tags

laravelcountriescitiesgeographical data

### Embed Badge

![Health badge](/badges/paulintrognon-laravel-world-cities/health.svg)

```
[![Health](https://phpackages.com/badges/paulintrognon-laravel-world-cities/health.svg)](https://phpackages.com/packages/paulintrognon-laravel-world-cities)
```

###  Alternatives

[pragmarx/countries

PHP Countries and Currencies

1.9k3.4M24](/packages/pragmarx-countries)[igaster/laravel_cities

Seed all countries/cities from geonames.org database. Searchable DB tree, ready to use API &amp; a bonus vue.js component!

18394.5k1](/packages/igaster-laravel-cities)[gerardojbaez/geodata

Laravel 5.2 package that provides basic geographical data like Countries, Regions and Cities.

3212.0k](/packages/gerardojbaez-geodata)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8231.5k1](/packages/dipeshsukhia-laravel-country-state-city-data)[usamamuneerchaudhary/country-city-state

Country City State Data Provider for Laravel 12+

242.7k](/packages/usamamuneerchaudhary-country-city-state)

PHPackages © 2026

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