Skip to content

kanekescom/laravel-siasn-simpeg

Repository files navigation

Laravel SIASN SIMPEG

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

This library is the abstraction of SIASN SIMPEG 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-simpeg

You can publish and run the migrations with:

php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="siasn-simpeg-config"

Or, all installations can be completed with the install command:

php artisan siasn-simpeg:install

Usage

Pegawai

Import pegawai to database via csv file exported from SIASN Export Data ASN

php artisan siasn-simpeg:import-pegawai {filePath}

Import pegawai by truncate data first

php artisan siasn-simpeg:import-pegawai {filePath} --truncate

Riwayat

Pull riwayat pegawai to database from endpoint on SIASN Simpeg API

php artisan siasn-simpeg:pull-riwayat

Pull specific riwayat pegawai to database from endpoint on SIASN Simpeg API

php artisan siasn-simpeg:pull-riwayat angkakredit

You can also use the endpoint argument to specify only certain endpoints to be pulled

Available endpoints:

  • angkakredit
  • cltn
  • diklat
  • dp3
  • golongan
  • hukdis
  • jabatan
  • kinerjaperiodik
  • kursus
  • masakerja
  • pemberhentian
  • pendidikan
  • penghargaan
  • pindahinstansi
  • pnsunor
  • pwk
  • skp
  • skp22

Use --nipBaru={nipBaru} option to select only certain pegawai (separated by commas)

Use --skip={number} option to skip N pegawai

Use --onlyDoesntHave option to only pegawai those that do not have data. Works if only one endpoint is selected.

PNS

Pull PNS data utama to database from endpoint on SIASN SIMPEG API

php artisan siasn-simpeg:pull-pns-data-utama

Use --nipBaru={nipBaru} option to select only certain pegawai (separated by commas)

Use --skip={number} option to skip N pegawai

Use --onlyDoesntHave option to only pegawai those that do not have data

Pengadaan

Pull pengadaan list to database from endpoint on SIASN SIMPEG API

php artisan siasn-simpeg:pull-pengadaan-list {tahun}

Pemberhentian

Pull kp list to database from endpoint on SIASN SIMPEG API

php artisan siasn-simpeg:pull-kp-list {periode}

periode format is yyyy-mm-dd

Pemberhentian

Pull pemberhentian pensiun list to database from endpoint on SIASN SIMPEG API

php artisan siasn-simpeg:pull-pemberhentian-pensiun-list {tahun}

Referensi

Pull referensi ref unor to database from endpoint on SIASN SIMPEG API

php artisan siasn-simpeg:pull-referensi-unor

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.