PHPackages                             rezzakurniawan/locanesia - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. rezzakurniawan/locanesia

ActiveLibrary[Localization &amp; i18n](/categories/localization)

rezzakurniawan/locanesia
========================

Indonesia Province, City, Sub District, Villages. Data From nomor.net

v0.1.2(8y ago)62835MITPHPPHP ^7.0

Since Mar 23Pushed 8y ago4 watchersCompare

[ Source](https://github.com/erkurn/locanesia)[ Packagist](https://packagist.org/packages/rezzakurniawan/locanesia)[ RSS](/packages/rezzakurniawan-locanesia/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Locanesia
=========

[](#locanesia)

- [About](#about)
- [Demo](#demo)
- [Requirements](#requirements)
- [Installation Instructions](#installation-instructions)
- [Basic Usage](#basic-usage)
- [License](#license)

### About

[](#about)

Laravel Package to populate and searching indonesia locations. From Provinces To Villages. Data Scraped from

### Demo

[](#demo)

[![IMAGE ALT TEXT HERE](https://camo.githubusercontent.com/908cfad550bbb18a29f43053d54f0de12f44bbdc9bfe43a93a7931c84176841a/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f4f7a41394868354559576b2f302e6a7067)](https://www.youtube.com/watch?v=OzA9Hh5EYWk)

### Requirements

[](#requirements)

- [Laravel 5.5+](https://laravel.com/docs/installation)
- MySQL 5.6+ if using InnoDB

### Installation Instructions

[](#installation-instructions)

1. From your projects root folder in terminal run:

    ```
        composer require rezzakurniawan/locanesia
    ```
2. Register the package

    - Laravel 5.5 and up Uses package auto discovery feature, no need to edit the `config/app.php` file.
    - Laravel 5.4 and below Register the package with laravel in `config/app.php` under `providers` and `aliases` with the following:

    ```
        'providers' => [
        ...
            rezzakurniawan\Locanesia\LocanesiaServiceProvider::class,
        ];

        'aliases' => [
        ...
           'Locanesia' => rezzakurniawan\Locanesia\LocanesiaFacade::class,
        ];
    ```
3. Migrate Database &amp; Seed Database

    ```
        php artisan migrate && php artisan db:seed --class=rezzakurniawan\\Locanesia\\Database\\Seed\\LocationSeeder
    ```

### Basic Usage

[](#basic-usage)

variable term can part of full address, like "Buah Batu Bandung".

always call locanesia, use it :

```
    use rezzakurniawan\Locanesia\Locanesia;
```

1. For Full Text Search

```
    /**
     * Full Text Search Location
     *
     * @param String $term Village, Postcode, Province, City Or combine
     * @param String $response json|array
     * @return void
     */
    Locanesia::search($term, $response);
```

2. Get All Province

```
    /**
     * Get All Provinces
     *
     * @param String $response json|array
     * @return void
     */
    Locanesia::getProvinces($response);
```

3. Get All Cities By Provinces

```
    /**
     * Get All Provinces
     *
     * @param String $provinces Province Name
     * @param String $response json|array
     * @return void
     */
    Locanesia::getCities($provinces, $response);
```

4. Get Detail Location By Postcode

```
    /**
     * Get Detail Location By Postcode
     *
     * @param String $term postcode
     * @param String $response json|array
     * @return void
     */
    Locanesia::getLocationByPostCode($term, $type);
```

### License

[](#license)

Laravel Locanesia is Licensed under MIT. Enjoy!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

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

Every ~2 days

Total

3

Last Release

3018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/506bcd38fef1c18b6357f2d835cc3b89a6afb10fe47eed6908e0a8b528151521?d=identicon)[rezzakurniawan](/maintainers/rezzakurniawan)

---

Top Contributors

[![erkurn](https://avatars.githubusercontent.com/u/2738865?v=4)](https://github.com/erkurn "erkurn (16 commits)")

---

Tags

data-scrapinglaravellocalizationprovincevillage

### Embed Badge

![Health badge](/badges/rezzakurniawan-locanesia/health.svg)

```
[![Health](https://phpackages.com/badges/rezzakurniawan-locanesia/health.svg)](https://phpackages.com/packages/rezzakurniawan-locanesia)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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