PHPackages                             silalahi/wilayah-php - 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. [API Development](/categories/api)
4. /
5. silalahi/wilayah-php

ActiveLibrary[API Development](/categories/api)

silalahi/wilayah-php
====================

PHP wrapper for wilayah.id API - Indonesian administrative regions data (provinces, regencies, districts, villages)

1.0.0(6mo ago)02MITPHPPHP ^7.4 || ^8.0CI passing

Since Oct 27Pushed 6mo agoCompare

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

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

Wilayah PHP Client
==================

[](#wilayah-php-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e96575a2c37a6cf348f4e7c99e093417405eead0e7d048f238fd066d1ad6ac97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696c616c6168692f77696c617961682d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/silalahi/wilayah-php)[![Total Downloads](https://camo.githubusercontent.com/610a39c6592051200896ef6574c6fd6a2e1061d43e51951413dcc5b0fe5f3233/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696c616c6168692f77696c617961682d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/silalahi/wilayah-php)

A PHP wrapper for the [wilayah.id](https://wilayah.id/) API, providing easy access to Indonesian administrative regions data including provinces, regencies/cities, districts, and villages.

Features
--------

[](#features)

- 🎯 Clean, fluent API with separated resource classes
- 📦 PSR-4 autoloading compatible
- 🛡️ Exception handling
- 💡 Type hints for better IDE support
- 🔍 Search by name or code
- 🇮🇩 Multi-byte safe (supports Indonesian characters)
- 🚀 Supports PHP 7.4 and above
- 📝 Zero dependencies (except ext-json)

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

[](#installation)

You can install this package via Composer:

```
composer require silalahi/wilayah-php
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
