PHPackages                             ferdirn/laravel-id-provinces - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ferdirn/laravel-id-provinces

ActiveLaravel-package[Utility &amp; Helpers](/categories/utility)

ferdirn/laravel-id-provinces
============================

Laravel ID Provinces is a package for Laravel to supply all provinces data to table provinces including province name, country code, capital, and area in square km. Start from data provinces in Indonesia.

v2.0(11y ago)21093MITPHPPHP &gt;=5.3.0

Since Nov 11Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel ID Provinces
====================

[](#laravel-id-provinces)

[![Total Downloads](https://camo.githubusercontent.com/2636b984ff7881643edb65e11547915bee3648121fceaeeb375b0fb3e4e2ec71/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d70726f76696e6365732f646f776e6c6f6164732e737667)](https://packagist.org/packages/ferdirn/laravel-id-provinces)[![Latest Stable Version](https://camo.githubusercontent.com/9a3fc0620daafc80beee9cb941e362b6a5d756872c38151829fe1c66dd716ce6/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d70726f76696e6365732f762f737461626c652e737667)](https://packagist.org/packages/ferdirn/laravel-id-provinces)[![Latest Unstable Version](https://camo.githubusercontent.com/f251add7cf9b4e1cf6ed86c91e1480ae04b84c85a81ab156a721f7ec6462ddba/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d70726f76696e6365732f762f756e737461626c652e737667)](https://packagist.org/packages/ferdirn/laravel-id-provinces)

Laravel ID Provinces is a package for Laravel to supply all provinces data in Indonesia to table provinces including province name, country code, capital, and area in square km. Start from data provinces 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.

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

[](#installation)

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

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

```

or in console type command

```
composer require ferdirn/laravel-id-provinces: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\Provinces\ProvincesServiceProvider',
)

```

also add to 'aliases'

```
'aliases' => array(
    'Provinces' => 'Ferdirn\Provinces\ProvincesFacade',
)

```

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

```

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

```
$ php artisan provinces:migration

```

This process will generate `_create_provinces_table.php` migration file and a `ProvincesSeeder.php` seed file.

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

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

```

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 'provinces' with all provinces data inside the table. Congratulation!

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~3 days

Total

3

Last Release

4195d ago

Major Versions

v1.2 → v2.02014-11-17

### 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 (11 commits)")

---

Tags

laravelareacapitalprovinces

### Embed Badge

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

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

###  Alternatives

[cartalyst/converter

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

88434.4k7](/packages/cartalyst-converter)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)[adlino/locations

Iran Provinces, Counties and Cities with a Google Map Location for Laravel.

171.3k](/packages/adlino-locations)[open-afghanistan/provinces

Afghanistan provinces laravel package

101.0k](/packages/open-afghanistan-provinces)

PHPackages © 2026

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