konnco/laravel-inadiv

Indonesian Administrative Division ( Pembagian Administratif Indonesia, Provinsi, Kota, Kelurahan ) For Laravel

Fund package maintenance!
konnco

0.0.2 2022-02-20 15:48 UTC

This package is auto-updated.

Last update: 2024-10-20 21:52:31 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is package helper for Indonesian Administrative Division Area.

Installation

You can install the package via composer:

composer require konnco/laravel-inadiv

You need to migrate the files via:

php artisan migrate

Usage

the usage is same as common Laravel Model, in this package there's 4 Models that you can use.

  • Konnco\Inadiv\Models\Province
  • Konnco\Inadiv\Models\City
  • Konnco\Inadiv\Models\District
  • Konnco\Inadiv\Models\Subdisctict

So if you have another function that need to included in this model, just Extend into another class.

use Konnco\Inadiv\Models\Province as BaseProvinceModel;

class Province extends BaseProvinceModel {
    public function yourCustomFunctionHere() {

    }
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.