PHPackages                             teguh02/php\_indonesia\_region - 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. teguh02/php\_indonesia\_region

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

teguh02/php\_indonesia\_region
==============================

Indonesia National Region PHP API no need database required

v1.0(3y ago)011MITPHP

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/teguh02/Indonesia_Region_PHP_API)[ Packagist](https://packagist.org/packages/teguh02/php_indonesia_region)[ RSS](/packages/teguh02-php-indonesia-region/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP API for Indonesia Region
============================

[](#php-api-for-indonesia-region)

Why this package? Because this is no need to use database, just use this package and you can get all region in Indonesia

Install
=======

[](#install)

Install with composer command

```
composer require teguh02/php_indonesia_region

```

Usage
=====

[](#usage)

PROVINCE
--------

[](#province)

### Get all province

[](#get-all-province)

```
$province = Region::query("all provinces") -> get();
```

### Get a province by id

[](#get-a-province-by-id)

```
$province = Region::query("province with id = 36") -> get();
```

### Get a province with array id

[](#get-a-province-with-array-id)

```
$province = Region::query("provinces with id in array [36, 51, 34, 61, 71]") -> get();
```

REGENCY
-------

[](#regency)

### Get all regency with id province is 36

[](#get-all-regency-with-id-province-is-36)

```
$regencies = Region::query("regencies with id_province = 33") -> get();
```

### Get all regency with id province is 32, 33

[](#get-all-regency-with-id-province-is-32-33)

```
$regencies = Region::query("regencies with id_province in array [32, 33]") -> get();
```

DISTRICT
--------

[](#district)

### Get all district with id regency is 3201

[](#get-all-district-with-id-regency-is-3201)

```
$districts = Region::query("districts with id_regency = 3302") -> get();
```

VILLAGE
-------

[](#village)

### get all village with id district is 330227

[](#get-all-village-with-id-district-is-330227)

```
$villages = Region::query("villages with id_district = 330227") -> get();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86437a73401dd2749be2dcae882e8a9937fe5dcd6b0d8895e5358c697f6a1898?d=identicon)[teguh02](/maintainers/teguh02)

---

Top Contributors

[![teguh02](https://avatars.githubusercontent.com/u/43981051?v=4)](https://github.com/teguh02 "teguh02 (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/teguh02-php-indonesia-region/health.svg)

```
[![Health](https://phpackages.com/badges/teguh02-php-indonesia-region/health.svg)](https://phpackages.com/packages/teguh02-php-indonesia-region)
```

PHPackages © 2026

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