PHPackages                             aliziodev/laravel-wilayah-boundaries - 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. aliziodev/laravel-wilayah-boundaries

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aliziodev/laravel-wilayah-boundaries
====================================

Addon data polygon batas wilayah administrasi Indonesia untuk package aliziodev/laravel-wilayah.

1.0.4(2mo ago)00MITPHPPHP ^8.2|^8.3CI passing

Since Mar 6Pushed 2mo agoCompare

[ Source](https://github.com/aliziodev/laravel-wilayah-boundaries)[ Packagist](https://packagist.org/packages/aliziodev/laravel-wilayah-boundaries)[ Docs](https://github.com/aliziodev/laravel-wilayah-boundaries)[ RSS](/packages/aliziodev-laravel-wilayah-boundaries/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

aliziodev/laravel-wilayah-boundaries
====================================

[](#aliziodevlaravel-wilayah-boundaries)

Addon data **polygon batas wilayah** Indonesia untuk package [`aliziodev/laravel-wilayah`](https://github.com/aliziodev/laravel-wilayah).

Dataset boundaries tidak lagi disimpan sebagai ribuan file PHP di source repo. Package ini memakai manifest ringan di repo dan dataset terkompresi (`ndjson.gz`) yang diunduh saat diperlukan.

Requirements
------------

[](#requirements)

```
composer require aliziodev/laravel-wilayah-boundaries
```

> Membutuhkan `aliziodev/laravel-wilayah` sudah terinstall.

Setup
-----

[](#setup)

```
php artisan vendor:publish --tag=wilayah-boundaries-migrations
php artisan migrate
php artisan boundaries:seed              # Seed semua level
php artisan boundaries:seed --province=32 # Hanya Jawa Barat
php artisan boundaries:seed --level=2    # Hanya level Kab/Kota
```

Penggunaan
----------

[](#penggunaan)

```
use Aliziodev\WilayahBoundaries\Facades\Boundary;
use Aliziodev\Wilayah\Models\Province;

// 1. Menggunakan Facade
$geoJson = Boundary::forCode('32')->toGeoJson();
$centroid = Boundary::nearestTo(lat: -6.9175, lng: 107.6191, level: 4);
$collection = Boundary::collection(level: 1); // FeatureCollection semua provinsi

// 2. Menggunakan Relasi Eloquent (Auto-injected)
// ✅ BEST PRACTICE: Gunakan eager loading (with) untuk mencegah N+1 query
$provinces = Province::with('boundary')->get();

foreach ($provinces as $province) {
    $geoJson = $province->boundary?->toGeoJson();
    $centroid = $province->boundary?->centroid();
}
```

Sync Data
---------

[](#sync-data)

```
php artisan boundaries:sync --dry-run
php artisan boundaries:sync
```

Cara Kerja Dataset
------------------

[](#cara-kerja-dataset)

- Repo package hanya menyimpan metadata kecil di `data/version.php`
- Dataset boundaries dibangun oleh GitHub Actions sebagai release asset `.ndjson.gz`
- Saat `boundaries:seed` atau `boundaries:sync` dijalankan, package akan memakai dataset lokal yang sudah ada atau mengunduh asset release yang sesuai

Pendekatan ini menjaga ukuran repo dan install Composer tetap ringan walaupun data polygon sangat besar.

License
-------

[](#license)

MIT © [Aliziodev](https://github.com/aliziodev)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance86

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~0 days

Total

4

Last Release

67d ago

### Community

Maintainers

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

---

Top Contributors

[![aliziodev](https://avatars.githubusercontent.com/u/187039973?v=4)](https://github.com/aliziodev "aliziodev (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![mu-hanz](https://avatars.githubusercontent.com/u/44943686?v=4)](https://github.com/mu-hanz "mu-hanz (1 commits)")

---

Tags

laravelmapPolygonindonesiawilayahgeojsonboundaries

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/aliziodev-laravel-wilayah-boundaries/health.svg)

```
[![Health](https://phpackages.com/badges/aliziodev-laravel-wilayah-boundaries/health.svg)](https://phpackages.com/packages/aliziodev-laravel-wilayah-boundaries)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[mostafaznv/nova-map-field

Map Field for Laravel Nova

4693.4k](/packages/mostafaznv-nova-map-field)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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