Skip to content

kanekescom/laravel-siasn-referensi

Repository files navigation

Laravel SIASN REFERENSI

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.

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

SIASNAPI-SIMPEG APIs

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.