martanto / indonesia
An alternative Laravel package for Indonesia administrative
Fund package maintenance!
Martanto
Requires
- php: ^8.2
- illuminate/contracts: ^10.0|^11.0|^12.0
- spatie/laravel-package-tools: ^1.92.0
Requires (Dev)
- larastan/larastan: ^2.9.8
- laravel/pint: ^1.0
- nunomaduro/collision: ^8.4
- orchestra/testbench: ^9.3
- pestphp/pest: ^2.35
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.4
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^1.2
- phpstan/phpstan-phpunit: ^1.4
README
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.