martanto/indonesia

An alternative Laravel package for Indonesia administrative

v1.2.0 2024-08-22 09:50 UTC

This package is auto-updated.

Last update: 2024-08-22 10:02:27 UTC


README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Paket ini digunakan sebagai alternatif untuk mendapatkan data Administrasi Indonesia. Meliputi data provinsi, kota/kabupaten, kecamatan, dan desa/kelurahan. Paket ini terinspirasi dari Laravolt Indonesia.

Installation

You can install the package via composer:

composer require martanto/indonesia

You can publish and run the migrations with:

php artisan vendor:publish --tag="indonesia-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="indonesia-config"

This is the contents of the published config file:

return [
    'cache' => true,
    'cache_prefix' => 'indonesia_'
];

Usage

Will be updated soon

$indonesia = new Martanto\Indonesia();
echo $indonesia->echoPhrase('Hello, Martanto!');

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

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