PHPackages                             ferdirn/laravel-id-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. [Database &amp; ORM](/categories/database)
4. /
5. ferdirn/laravel-id-cities

ActiveLaravel-package[Database &amp; ORM](/categories/database)

ferdirn/laravel-id-cities
=========================

Laravel ID Cities is a package for Laravel to supply all cities data to table cities. Start from data cities in Indonesia.

v1.0(11y ago)21401MITPHPPHP &gt;=5.3.0

Since Nov 18Pushed 11y ago3 watchersCompare

[ Source](https://github.com/ferdirn/laravel-id-cities)[ Packagist](https://packagist.org/packages/ferdirn/laravel-id-cities)[ Docs](https://github.com/ferdirn/laravel-id-cities)[ RSS](/packages/ferdirn-laravel-id-cities/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel ID Cities
=================

[](#laravel-id-cities)

[![Total Downloads](https://camo.githubusercontent.com/46f1519c8f01c711eedfa24f43b1ef22124a17a2a44dcdefba4af97b782891bb/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d6369746965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/ferdirn/laravel-id-cities)[![Latest Stable Version](https://camo.githubusercontent.com/417bc7081f2cc34244c39188726445ca54bea211ced32d82066ae4b103abf3dc/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d6369746965732f762f737461626c652e737667)](https://packagist.org/packages/ferdirn/laravel-id-cities)[![Latest Unstable Version](https://camo.githubusercontent.com/bd200cf5bcf33372222d798180f27e1c187a51a73c3c9410833bcd0531af9e6c/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d6369746965732f762f756e737461626c652e737667)](https://packagist.org/packages/ferdirn/laravel-id-cities)

Laravel ID Cities is a package for Laravel to supply all cities data to table cities. Start from data cities in Indonesia.

If you need Laravel package to provide all Countries data for you, then you may want to install [ferdirn/laravel-id-countries](https://github.com/ferdirn/laravel-id-countries) package.

If you need Laravel package to provide all Provinces data for you, then you may want to install [ferdirn/laravel-id-provinces](https://github.com/ferdirn/laravel-id-provinces) package.

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

[](#installation)

Add `ferdirn/laravel-id-cities` to `composer.json`.

```
"ferdirn/laravel-id-cities": "dev-master"

```

or in console type command

```
composer require ferdirn/laravel-id-cities:dev-master

```

Run `composer update` to pull down the latest version of laravel packages.

Edit `app/config/app.php` file and add to `providers`

```
'providers' => array(
    'Ferdirn\Cities\CitiesServiceProvider',
)

```

also add to 'aliases'

```
'aliases' => array(
    'Cities' => 'Ferdirn\Cities\CitiesFacade',
)

```

Model
-----

[](#model)

If you want to edit the configuration then publish the config. This is an optional step and unrecommended to do, it will show the table name and you do not need to alter it if you do not know what you are doing. The default table name is `cities`, if it suits you, leave it. But if you know what you are doing, you can run the following command

```
$ php artisan config:publish ferdirn/laravel-id-cities

```

Then you need to generate the migration file. Run the following command:

```
$ php artisan cities:migration

```

This process will generate `_create_cities_table.php` migration file and a `CitiesSeeder.php` seed file.

Insert the following code in the `seeds/DatabaseSeeder.php`

```
//Seed the cities
$this->call('CitiesSeeder');
$this->command->info('Seeded the cities!');

```

Finally, you can run the artisan migrate command with seed option to include the seed data:

```
$ php artisan migrate --seed

```

Now you have a table 'cities' with all cities data inside the table. Congratulation!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4193d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9c33eccf210d01ac51c52160cc2d03d2f37c61965cca641cb9954c3e54c31f9?d=identicon)[ferdirn](/maintainers/ferdirn)

---

Top Contributors

[![ferdirn](https://avatars.githubusercontent.com/u/4104384?v=4)](https://github.com/ferdirn "ferdirn (1 commits)")

---

Tags

laravelindonesiacities

### Embed Badge

![Health badge](/badges/ferdirn-laravel-id-cities/health.svg)

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

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[altwaireb/laravel-world

Laravel World, Countries States Cities DB Migration &amp; Seeder

989.4k](/packages/altwaireb-laravel-world)[andes2912/indobank

List Bank of Indonesian

2110.1k](/packages/andes2912-indobank)[matriphe/laraciproid

Indonesia city and province data migration and seeder for Laravel.

232.5k](/packages/matriphe-laraciproid)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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