kanekescom / laravel-siasn-referensi
SIASN Referensi for Laravel
Fund package maintenance!
achmadhadikurnia
Buymeacoffee
Patreon
Saweria
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.2
- illuminate/contracts: ^10.0|^11.0
- kanekescom/laravel-helperia: ^2.0
- kanekescom/laravel-siasn-api: ^2.0
- kanekescom/laravel-siasn-referensi-api: ^2.1
- kanekescom/siasn-referensi-dataset: ^2024.0@dev
- league/csv: ^9.15
- spatie/laravel-fractal: ^6.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
This library is the abstraction of SIASN REFERENSI for access from applications written with Laravel PHP Framework.
Support us
Want to provide tangible support? Use the following platform to contribute to open-source software developers. Every contribution you make is a significant boost to continue building and enhancing technology that benefits everyone.
- Buy Me a Coffee https://s.id/hadibmac
- Patreon https://s.id/hadipatreon
- Saweria https://s.id/hadisaweria
We highly appreciate you sending us a few cups of coffee to accompany us while writing code. Super thanks.
Use pro version
We also offer a professional version. We're excited for you to try it out, as it allows us to consistently deliver high-quality software. Don't hesitate to contact us at kanekescom@gmail.com for further information.
- Laravel SIASN Referensi Panel
- Laravel SIASN SIMPEG Panel
- SIMPEGDA App
Installation
You can install the package via composer:
composer require kanekescom/laravel-siasn-referensi
You can publish and run the migrations with:
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="siasn-referensi-config"
Or, all installations can be completed with the install command:
php artisan siasn-referensi:install
Usage
Pull data
Pull referensi data from SIASN into the database
php artisan siasn-referensi:pull
Pull specific endpoint referensi data from SIASN into the database
php artisan siasn-referensi:pull agama ... ... ...
Available endpoints:
- agama
- alasan-hukuman-disiplin
- asn-jenis-jabatan
- asn-jenjang-jabatan
- eselon
- golongan
- instansi
- jabatan-fungsional
- jabatan-fungsional-umum
- jenis-anak
- jenis-hukuman
- jenis-jabatan
- kanreg
- kedudukan-hukum
- kel-jabatan
- latihan-struktural
- lokasi
- pendidikan
- ref-dokumen
- ref-jenjang-jf
- satuan-kerja
- tingkat-pendidikan
- jenis-diklat
Get data
Get referensi data from API
use Kanekescom\Siasn\Referensi\Referensi; $limit = 10; $offset = 0; // get list of agama Referensi::getAgama([ 'limit' => $limit, 'offset' => $offset, ]); // get list of alasan hukuman disiplin Referensi::getAlasanHukumanDisiplin([ 'limit' => $limit, 'offset' => $offset, ]) // get list of asn jenis jabatan Referensi::getAsnJenisJabatan([ 'limit' => $limit, 'offset' => $offset, ]) // get list of asn jenjang jabatan Referensi::getAsnJenjangJabatan([ 'limit' => $limit, 'offset' => $offset, ]) // get list of eselon Referensi::getEselon([ 'limit' => $limit, 'offset' => $offset, ]) // get list of golongan Referensi::getGolongan([ 'limit' => $limit, 'offset' => $offset, ]) // get list of instansi Referensi::getInstansi([ 'limit' => $limit, 'offset' => $offset, ]) // get list of jabatan fungsional Referensi::getJabatanFungsional([ 'limit' => $limit, 'offset' => $offset, ]) // get list of jabatan fungsional umum Referensi::getJabatanFungsionalUmum([ 'limit' => $limit, 'offset' => $offset, ]) // get list of jenis anak Referensi::getJenisAnak([ 'limit' => $limit, 'offset' => $offset, ]) // get list of jenis diklat Referensi::getJenisDiklat([ 'limit' => $limit, 'offset' => $offset, ]) // get list of jenis hukuman Referensi::getJenisHukuman([ 'limit' => $limit, 'offset' => $offset, ]) // get list of jenis jabatan Referensi::getJenisJabatan([ 'limit' => $limit, 'offset' => $offset, ]) // get list of kanreg Referensi::getKanreg([ 'limit' => $limit, 'offset' => $offset, ]) // get list of kedudukan hukum Referensi::getKedudukanHukum([ 'limit' => $limit, 'offset' => $offset, ]) // get list of kel jabatan Referensi::getKelJabatan([ 'limit' => $limit, 'offset' => $offset, ]) // get list of latihan struktural Referensi::getLatihanStruktural([ 'limit' => $limit, 'offset' => $offset, ]) // get list of lokasi Referensi::getLokasi([ 'limit' => $limit, 'offset' => $offset, ]) // get list of pendidikan Referensi::getPendidikan([ 'limit' => $limit, 'offset' => $offset, ]) // get list of ref dokumen Referensi::getRefDokumen([ 'limit' => $limit, 'offset' => $offset, ]) // get list of ref jenjang jf Referensi::getRefJenjangJf([ 'limit' => $limit, 'offset' => $offset, ]) // get list of satuan kerja Referensi::getSatuanKerja([ 'limit' => $limit, 'offset' => $offset, ]) // get list of tingkat pendidikan Referensi::getTingkatPendidikan([ 'limit' => $limit, 'offset' => $offset, ]);
Testing
composer test
Our other cool packages
Need a package for other BKN's Web Service APIs? Consider installing our packages for seamless integration.
Referensi APIs
-
https://github.com/kanekescom/laravel-siasn-referensi-api as API client
-
https://github.com/kanekescom/laravel-siasn-referensi as backend
SIASNAPI-SIMPEG APIs
-
https://github.com/kanekescom/laravel-siasn-simpeg-api as API client
-
https://github.com/kanekescom/laravel-siasn-simpeg as backend
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.