PHPackages                             novay/wilayah-module - 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. novay/wilayah-module

ActiveLaravel-module

novay/wilayah-module
====================

Module Laravel yang berisi data Provinsi, Kabupaten/Kota, Kecamatan dan Kelurahan/Desa di seluruh Indonesia.

2.3(4y ago)053[1 issues](https://github.com/novay/wilayah-module/issues)PHP

Since Jan 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/novay/wilayah-module)[ Packagist](https://packagist.org/packages/novay/wilayah-module)[ RSS](/packages/novay-wilayah-module/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Data Wilayah Indonesia
======================

[](#data-wilayah-indonesia)

[![Total Downloads](https://camo.githubusercontent.com/51076cb00c554b904e1db882e34ec0cffd4cb59849335c87525e93a20eacada1/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7661792f77696c617961682d6d6f64756c652f642f746f74616c2e737667)](https://packagist.org/packages/novay/wilayah-module)[![Build Status](https://camo.githubusercontent.com/724d5ea84f8291e58fe23f2f853d5e1df0a64b29c5791ddab7224fdad77e389e/68747470733a2f2f7472617669732d63692e6f72672f6e6f7661792f77696c617961682d6d6f64756c652e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/novay/wilayah-module)[![Latest Stable Version](https://camo.githubusercontent.com/3384c8c7e3e69a95aa43f5e2faa6b969cfb8e3474060b7a8d24de857ceaaa4f2/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7661792f77696c617961682d6d6f64756c652f762f737461626c652e737667)](https://packagist.org/packages/novay/wilayah-module)[![Latest Unstable Version](https://camo.githubusercontent.com/b288fa773868896455a16f53d4f2c87fab548c93c96a53e697a611912306932a/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7661792f77696c617961682d6d6f64756c652f762f756e737461626c652e737667)](https://packagist.org/packages/novay/wilayah-module)[![License](https://camo.githubusercontent.com/1d81a0ec08ce53a7ce7cee7d3145429e75a3fa3af63d199ad10153fe51eefc32/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7661792f77696c617961682d6d6f64756c652f6c6963656e73652e737667)](https://raw.githubusercontent.com/novay/wilayah-module/LICENSE)

**Modul Laravel** ini berisi data Provinsi, Kabupaten/Kota, Kecamatan dan Kelurahan/Desa di seluruh Indonesia. Data wilayah yang ada pada modul ini diambil dari **laravolt/indonesia** yang bersumber dari **edwardsamuel/Wilayah-Administratif-Indonesia**.

- [Requirements](#requirements)
- [Installation](#installation)
    - [Install Package via Composer](#install-package-via-composer)
- [Usage](#usage)
- [Linked Helpers](#linked)
- [Helpers](#helpers)
- [Enable Logo](#enable-logo)
- [License](#license)

### Requirements

[](#requirements)

- [Laravel](https://laravel.com/docs/installation)
- [Modules by nwidart](https://github.com/nwidart/laravel-modules)
- [Modules Installer by joshbrw](https://github.com/joshbrw/laravel-module-installer)

### Installation

[](#installation)

##### Install Package Via Composer

[](#install-package-via-composer)

```
composer require novay/wilayah-module
```

### Usage

[](#usage)

- `php artisan module:migrate Wilayah`
- `php artisan module:seed Wilayah`

### Linked Helpers

[](#linked-helpers)

Gak tau kenapa helpers bawaan Modules gak fungsi, jadi mesti di register manual.

```
// composer.json

"autoload": {
    "psr-4": {
            ...
        },
        "classmap": [
            ...
        ],
        "files": [
            "Modules/Wilayah/Helpers/Function.php"
    ]
},
```

### Helpers

[](#helpers)

- `provinsi()->get()`
- `kota()->find($id)`
- `kecamatan()->whereNama('Sungai Kunjang')->first()`
- `kelurahan()->paginate(10)`
- `logo($id) ` Untuk full url logo. `$id` adalah id provinsi atau kota.

### Enable Logo

[](#enable-logo)

Karena masalah waktu download package yang terlalu lama. Untuk versi terbaru tidak di includekan file logo. Tetapi dipanggil melalui CDN.

Bila ingin menggunakan package sekaligus file Logonya bisa install package versi 2.0 :

```
composer require novay/wilayah-module "2.0"
```

- Lalu jalankan perintah artisan berikut melalui command prompt atau terminal:

```
php artisan wilayah:logo
```

License
-------

[](#license)

Wilayah Modules is licensed under the MIT license for both personal and commercial products. Enjoy!

**Last Tested on Laravel 8**

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

5

Last Release

1765d ago

Major Versions

v1.0 → 2.02021-07-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/712577?v=4)[Novianto Rahmadi](/maintainers/novay)[@novay](https://github.com/novay)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/novay-wilayah-module/health.svg)

```
[![Health](https://phpackages.com/badges/novay-wilayah-module/health.svg)](https://phpackages.com/packages/novay-wilayah-module)
```

PHPackages © 2026

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