This library provides a collection of references and utilities related to Indonesian citizen identity documents, such as KTP (Kartu Tanda Penduduk) and KK (Kartu Keluarga). It aims to simplify the process of working with these identifiers in your PHP applications.
The recommended installation method is via Composer:
composer require wurin7i/id-refs
This will install the library and its dependencies into your project's vendor directory.
- PHP 8.1 and above
- illuminate/support ^9.0 or ^10.0
Once installed, you can use the library's classes and functions to interact with Indonesian citizen identity references. Refer to the detailed documentation (coming soon) for specific usage instructions.
The library may include database seeders located in the database/seeders directory. These seeders can be used to populate your database with reference data. To run the seeders, you'll need to configure your database connection and use a command-line tool like Laravel's Artisan:
php artisan db:seed --class=WuriN7i\\IdRefs\\Database\\Seeders\\ReferenceDataSeeder
IdRefs library offer a command idrefs:update-data
to update your database with Kemendagri regions data. The sql source is retrieved from the cahyadsn/wilayah GitHub repository.
php artisan idrefs:update-data
We welcome contributions to this library. Please see the CONTRIBUTING.md file (to be added) for guidelines on how to contribute.
This library is licensed under the MIT License. See the LICENSE file for details.
Wuri Nugrahadi (wuri.nugrahadi@gmail.com)