konnco / laravel-inadiv
Indonesian Administrative Division ( Pembagian Administratif Indonesia, Provinsi, Kota, Kelurahan ) For Laravel
Fund package maintenance!
konnco
Installs: 2 955
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4|^8.0|^9.0
- illuminate/contracts: ^9.0
- parsecsv/php-parsecsv: ^1.3
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.4
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-parallel: ^1.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
README
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.