kanekescom/laravel-siasn-simpeg-api

SIASN SIMPEG REST API Client for Laravel


README

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

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

You can publish the config file with:

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

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

php artisan siasn-simpeg-api:install

Usage

Using the console

AngkaKredit

Send DELETE request to /angkakredit/delete/{idRiwayatAngkaKredit} endpoint

php artisan siasn-simpeg:delete-angkakredit-delete {idRiwayatAngkaKredit}

Send GET request to /angkakredit/id/{idRiwayatAngkaKredit} endpoint

php artisan siasn-simpeg:get-angkakredit-id {idRiwayatAngkaKredit}

Send POST request to /angkakredit/save endpoint

php artisan siasn-simpeg:post-angkakredit-save
CPNS

Send POST request to /cpns/save endpoint

php artisan siasn-simpeg:post-cpns-save
Diklat

Send GET request to /diklat/id/{idRiwayatDiklat} endpoint

php artisan siasn-simpeg:get-diklat-id {idRiwayatDiklat}

Send POST request to /diklat/save endpoint

php artisan siasn-simpeg:post-diklat-save
Upload

Send GET request to /download-dok endpoint

php artisan siasn-simpeg:get-download-dok

Send GET request to /download-dok endpoint and save into local disk

php artisan siasn-simpeg:download-download-dok

Send POST request to /upload-dok endpoint

php artisan siasn-simpeg:post-upload-dok

Send POST request to /upload-dok-rw endpoint

php artisan siasn-simpeg:post-upload-dok-rw
Hukdis

Send GET request to /hukdis/id/{idRiwayatHukdis} endpoint

php artisan siasn-simpeg:get-hukdis-id {idRiwayatHukdis}

Send POST request to /hukdis/save endpoint

php artisan siasn-simpeg:post-hukdis-save
Jabatan

Send GET request to /jabatan/id/{idRiwayatJabatan} endpoint

php artisan siasn-simpeg:get-jabatan-id {idRiwayatJabatan}

Send GET request to /jabatan/pns/{nipBaru} endpoint

php artisan siasn-simpeg:get-jabatan-pns {nipBaru}

Send POST request to /jabatan/unorjabatan/save endpoint

php artisan siasn-simpeg:post-jabatan-unorjabatan-save

Send POST request to /jabatan/save endpoint

php artisan siasn-simpeg:post-jabatan-save
Kinerja

Send DELETE request to /kinerjaperiodik/delete/{idRiwayatKinerjaPeriodik} endpoint

php artisan siasn-simpeg:delete-kinerjaperiodik-delete {idRiwayatKinerjaPeriodik}

Send POST request to /kinerjaperiodik/save endpoint

php artisan siasn-simpeg:post-kinerjaperiodik-save
Kursus

Send DELETE request to /kursus/delete/{idRiwayatKursus} endpoint

php artisan siasn-simpeg:delete-kursus-delete {idRiwayatKursus}

Send GET request to /kursus/id/{idRiwayatKursus} endpoint

php artisan siasn-simpeg:get-kursus-id {idRiwayatKursus}

Send POST request to /kursus/save endpoint

php artisan siasn-simpeg:post-kursus-save
Pengadaan

Send GET request to /pengadaan/list-pengadaan-instansi endpoint

php artisan siasn-simpeg:get-pengadaan-list-pengadaan-instansi {tahun}
Penghargaan

Send GET request to /penghargaan/id/{idRiwayatPenghargaan} endpoint

php artisan siasn-simpeg:get-penghargaan-id {idRiwayatPenghargaan}

Send DELETE request to /penghargaan/delete/{idRiwayatPenghargaan} endpoint

php artisan siasn-simpeg:delete-penghargaan-delete {idRiwayatPenghargaan}

Send POST request to /penghargaan/save endpoint

php artisan siasn-simpeg:post-penghargaan-save
PNS

Send GET request to /pns/data-anak/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-data-anak {nipBaru}

Send GET request to /pns/data-ortu/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-data-ortu {nipBaru}

Send GET request to /pns/data-pasangan/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-data-pasangan {nipBaru}

Send POST request to /pns/data-utama-update endpoint

php artisan siasn-simpeg:post-pns-data-utama-update

Send GET request to /pns/data-utama/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-data-utama {nipBaru}

Send GET request to /pns/photo/{idPns} endpoint

php artisan siasn-simpeg:get-pns-photo {idPns}

Send GET request to /pns/photo/{idPns} endpoint and save into local disk

php artisan siasn-simpeg:download-pns-photo {idPns}
Kp

Send GET request to /pns/list-kp-instansi endpoint

php artisan siasn-simpeg:get-pns-list-kp-instansi {periode}

periode format is yyyy-mm-dd

Send POST request to /upload-dok-sk-kp endpoint

php artisan siasn-simpeg:post-upload-dok-sk-kp
Pemberhentian

Send GET request to /pns/list-pensiun-instansi endpoint

php artisan siasn-simpeg:get-pns-list-pensiun-instansi {tglAwal} {tglAkhir}

tglAwal format is dd-mm-yyyy tglAkhir format is dd-mm-yyyy

Riwayat

Send GET request to /pns/rw-angkakredit/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-angkakredit {nipBaru}

Send GET request to /pns/rw-cltn/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-cltn {nipBaru}

Send GET request to /pns/rw-diklat/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-diklat {nipBaru}

Send GET request to /pns/rw-dp3/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-dp3 {nipBaru}

Send GET request to /pns/rw-golongan/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-golongan {nipBaru}

Send GET request to /pns/rw-hukdis/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-hukdis {nipBaru}

Send GET request to /pns/rw-jabatan/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-jabatan {nipBaru}

Send GET request to /pns/rw-kinerjaperiodik/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-kinerjaperiodik {nipBaru}

Send GET request to /pns/rw-kursus/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-kursus {nipBaru}

Send GET request to /pns/rw-masakerja/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-masakerja {nipBaru}

Send GET request to /pns/rw-pemberhentian/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-pemberhentian {nipBaru}

Send GET request to /pns/rw-pendidikan/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-pendidikan {nipBaru}

Send GET request to /pns/rw-penghargaan/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-penghargaan {nipBaru}

Send GET request to /pns/rw-pindahinstansi/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-pindahinstansi {nipBaru}

Send GET request to /pns/rw-pnsunor/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-pnsunor {nipBaru}

Send GET request to /pns/rw-pwk/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-pwk {nipBaru}

Send GET request to /pns/rw-skp22/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-skp22 {nipBaru}

Send GET request to /pns/rw-skp/{nipBaru} endpoint

php artisan siasn-simpeg:get-pns-rw-skp {nipBaru}
Referensi

Send GET request to /referensi/ref-unor endpoint

php artisan siasn-simpeg:get-referensi-ref-unor
Skp

Send POST request to /skp/2021/save endpoint

php artisan siasn-simpeg:post-skp2021-save

Send GET request to /skp/id/{idRiwayatSkp} endpoint

php artisan siasn-simpeg:get-skp-id {idRiwayatSkp}

Send POST request to /skp/save endpoint

php artisan siasn-simpeg:post-skp-save
Skp 2022

Send GET request to /skp22/id/{idRiwayatSkp} endpoint

php artisan siasn-simpeg:get-skp22-id

Send POST request to /skp22/save endpoint

php artisan siasn-simpeg:post-skp22-save

Using the Client class

AngkaKredit

Delete Angka Kredit from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\AngkaKredit;

$pathParams = [
    'idRiwayatAngkaKredit' => 'string',
];

AngkaKredit::delete($pathParams);

// Or directly
AngkaKredit::delete('{idRiwayatAngkaKredit}');

Get Angka Kredit from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\AngkaKredit;

$pathParams = [
    'idRiwayatAngkaKredit' => 'string',
];

AngkaKredit::get($pathParams);

// Or directly
AngkaKredit::get('{idRiwayatAngkaKredit}');

Add Angka Kredit to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\AngkaKredit;

$queryParams = [
  'bulanMulaiPenailan' => 'string',
  'bulanSelesaiPenailan' => 'string',
  'id' => 'string',
  'isAngkaKreditPertama' => 'string',
  'isIntegrasi' => 'string',
  'isKonversi' => 'string',
  'kreditBaruTotal' => 'string',
  'kreditPenunjangBaru' => 'string',
  'kreditUtamaBaru' => 'string',
  'nomorSk' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsId' => 'string',
  'rwJabatanId' => 'string',
  'tahunMulaiPenailan' => 'string',
  'tahunSelesaiPenailan' => 'string',
  'tanggalSk' => 'string',
];

AngkaKredit::save([], $queryParams);
CPNS

Add CPNS to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Cpns;

$queryParams = [
  'id' => 'string',
  'kartu_pegawai' => 'string',
  'nama_jabatan_angkat_cpns' => 'string',
  'nomor_dokter_pns' => 'string',
  'nomor_sk_cpns' => 'string',
  'nomor_sk_pns' => 'string',
  'nomor_spmt' => 'string',
  'nomor_sttpl' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pertek_cpns_pns_l2th_nomor' => 'string',
  'pertek_cpns_pns_l2th_tanggal' => 'string',
  'pns_orang_id' => 'string',
  'status_cpns_pns' => 'string',
  'tanggal_dokter_pns' => 'string',
  'tgl_sk_cpns' => 'string',
  'tgl_sk_pns' => 'string',
  'tgl_sttpl' => 'string',
  'tmt_pns' => 'string',
];

Cpns::save([], $queryParams);
Diklat

Get Diklat from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Diklat;

$pathParams = [
    'idRiwayatDiklat' => 'string',
];

Diklat::get($pathParams);

// Or directly
Diklat::get('{idRiwayatDiklat}');

Add Diklat to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Diklat;

$queryParams = [
  'bobot' => 0,
  'id' => 'string',
  'institusiPenyelenggara' => 'string',
  'jenisKompetensi' => 'string',
  'jumlahJam' => 0,
  'latihanStrukturalId' => 'string',
  'nomor' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsOrangId' => 'string',
  'tahun' => 0,
  'tanggal' => 'string',
  'tanggalSelesai' => 'string',
];

Diklat::save([], $queryParams);
Upload

Get file from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Upload;

$queryParams = [
    'filePath' => 'string',
];

Upload::getDok([], $queryParams);

Download file from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Upload;

$queryParams = [
    'filePath' => 'string',
];
$filename = 'string';

Upload::downloadDok([], $queryParams, $disk = 'local', $filename);

Upload Dok file to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Upload;

$queryParams = [
  'file' => 'string',
  'id_ref_dokumen' => 'string',
];

Upload::uploadDok([], $queryParams);

Upload Dok Riwayat file to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Upload;

$queryParams = [
  'file' => 'string',
  'id_riwayat' => 'string',
  'id_ref_dokumen' => 'string',
];

Upload::uploadDokRw([], $queryParams);
Hukdis

Get Hukdis from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Hukdis;

$pathParams = [
    'idRiwayatHukdis' => 'string',
];

Hukdis::get($pathParams);

// Or directly
Hukdis::get('{idRiwayatHukdis}');

Add Hukdis to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Hukdis;

$queryParams = [
  'akhirHukumanTanggal' => 'string',
  'alasanHukumanDisiplinId' => 'string',
  'golonganId' => 'string',
  'golonganLama' => 'string',
  'hukdisYangDiberhentikanId' => 'string',
  'hukumanTanggal' => 'string',
  'id' => 'string',
  'jenisHukumanId' => 'string',
  'jenisTingkatHukumanId' => 'string',
  'kedudukanHukumId' => 'string',
  'keterangan' => 'string',
  'masaBulan' => 'string',
  'masaTahun' => 'string',
  'nomorPp' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsOrangId' => 'string',
  'skNomor' => 'string',
  'skPembatalanNomor' => 'string',
  'skPembatalanTanggal' => 'string',
  'skTanggal' => 'string',
];

Hukdis::save([], $queryParams);
Jabatan

Get Jabatan by ID from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Jabatan;

$pathParams = [
    'idRiwayatJabatan' => 'string',
];

Jabatan::get($pathParams);

// Or directly
Jabatan::get('{idRiwayatJabatan}');

Get Jabatan by nipBaru from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Jabatan;

$pathParams = [
    'nipBaru' => 'string',
];

Jabatan::getNipBaru($pathParams);

// Or directly
Jabatan::getNipBaru('{nipBaru}');

Add Jabatan Unor to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Jabatan;

$queryParams = [
  'eselonId' => 'string',
  'id' => 'string',
  'instansiId' => 'string',
  'jabatanFungsionalId' => 'string',
  'jabatanFungsionalUmumId' => 'string',
  'jenisJabatan' => 'string',
  'jenisMutasiId' => 'string',
  'jenisPenugasanId' => 'string',
  'nomorSk' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsId' => 'string',
  'satuanKerjaId' => 'string',
  'subJabatanId' => 'string',
  'tanggalSk' => 'string',
  'tmtJabatan' => 'string',
  'tmtMutasi' => 'string',
  'tmtPelantikan' => 'string',
  'unorId' => 'string',
];

Jabatan::saveUnor([], $queryParams);

Add Jabatan to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Jabatan;

$queryParams = [
  'eselonId' => 'string',
  'id' => 'string',
  'instansiId' => 'string',
  'jabatanFungsionalId' => 'string',
  'jabatanFungsionalUmumId' => 'string',
  'jenisJabatan' => 'string',
  'nomorSk' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsId' => 'string',
  'satuanKerjaId' => 'string',
  'tanggalSk' => 'string',
  'tmtJabatan' => 'string',
  'tmtPelantikan' => 'string',
  'unorId' => 'string',
];

Jabatan::save([], $queryParams);
Kinerja

Get Kinerja from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kinerja;

$pathParams = [
    'idRiwayatKinerjaPeriodik' => 'string',
];

Kinerja::get($pathParams);

// Or directly
Kinerja::get('{idRiwayatKinerjaPeriodik}');

Add Kinerja to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kinerja;

$queryParams = [
  'bulanMulaiPenilaian' => 0,
  'bulanSelesaiPenilaian' => 0,
  'hasilKinerjaNilai' => 0,
  'id' => 'string',
  'koefisienId' => 'string',
  'kuadranKinerjaNilai' => 0,
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'penilaiGolongan' => 'string',
  'penilaiJabatanNama' => 'string',
  'penilaiNama' => 'string',
  'penilaiNipNrp' => 'string',
  'penilaiUnorNama' => 'string',
  'perilakuKerjaNilai' => 0,
  'periodikId' => 'string',
  'pnsDinilaiId' => 'string',
  'statusPenilai' => 'string',
  'tahun' => 0,
  'tahunMulaiPenilaian' => 0,
  'tahunSelesaiPenilaian' => 0,
];

Kinerja::save([], $queryParams);
Kursus

Delete Kursus from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kursus;

$pathParams = [
    'idRiwayatKursus' => 'string',
];

Kursus::delete($pathParams);

// Or directly
Kursus::delete('{idRiwayatKursus}');

Get Kursus from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kursus;

$pathParams = [
    'idRiwayatKursus' => 'string',
];

Kursus::get($pathParams);

// Or directly
Kursus::get('{idRiwayatKursus}');

Add Kursus to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kursus;

$queryParams = [
  'id' => 'string',
  'instansiId' => 'string',
  'institusiPenyelenggara' => 'string',
  'jenisDiklatId' => 'string',
  'jenisKursus' => 'string',
  'jenisKursusSertipikat' => 'string',
  'jumlahJam' => 0,
  'lokasiId' => 'string',
  'namaKursus' => 'string',
  'nomorSertipikat' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsOrangId' => 'string',
  'tahunKursus' => 0,
  'tanggalKursus' => 'string',
  'tanggalSelesaiKursus' => 'string',
];

Kursus::save([], $queryParams);
Pengadaan

Get Pengadaan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pengadaan;

$queryParams = [
    'tahun' => 'string',
];

Pengadaan::getList([], $queryParams);
Penghargaan

Delete Penghargaan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Penghargaan;

$pathParams = [
    'idRiwayatPenghargaan' => 'string',
];

Penghargaan::delete($pathParams);

// Or directly
Penghargaan::delete('{idRiwayatPenghargaan}');

Get Penghargaan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Penghargaan;

$pathParams = [
    'idRiwayatPenghargaan' => 'string',
];

Penghargaan::get($pathParams);

// Or directly
Penghargaan::get('{idRiwayatPenghargaan}');

Add Penghargaan to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Penghargaan;

$queryParams = [
  'hargaId' => 'string',
  'id' => 'string',
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'pnsOrangId' => 'string',
  'skDate' => 'string',
  'skNomor' => 'string',
  'tahun' => 0,
];

Penghargaan::save([], $queryParams);
PNS

Get PNS Data Anak from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$pathParams = [
    'nipBaru' => 'string',
];

Pns::getDataAnak($pathParams);

// Or directly
Pns::getDataAnak('{nipBaru}');

Get PNS Data Orang Tua from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$pathParams = [
    'nipBaru' => 'string',
];

Pns::getDataOrtu($pathParams);

// Or directly
Pns::getDataOrtu('{nipBaru}');

Get PNS Data Pasangan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$pathParams = [
    'nipBaru' => 'string',
];

Pns::getDataPasangan($pathParams);

// Or directly
Pns::getDataPasangan('{nipBaru}');

Update Data Utama PNS to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$queryParams = [
  'agama_id' => 'string',
  'alamat' => 'string',
  'email' => 'string',
  'email_gov' => 'string',
  'kabupaten_id' => 'string',
  'karis_karsu' => 'string',
  'kelas_jabatan' => 'string',
  'kpkn_id' => 'string',
  'lokasi_kerja_id' => 'string',
  'nomor_bpjs' => 'string',
  'nomor_hp' => 'string',
  'nomor_telpon' => 'string',
  'npwp_nomor' => 'string',
  'npwp_tanggal' => 'string',
  'pns_orang_id' => 'string',
  'tanggal_taspen' => 'string',
  'tapera_nomor' => 'string',
  'taspen_nomor' => 'string',
];

Pns::updateDataUtama([], $queryParams);

Get PNS Data Utama from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$pathParams = [
    'nipBaru' => 'string',
];

Pns::getDataUtama($pathParams);

// Or directly
Pns::getDataUtama('{nipBaru}');

Get Photo from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$pathParams = [
    'idPns' => 'string',
];

Pns::getPhoto($pathParams);

// Or directly
Pns::getPhoto('{idPns}');

Download Photo from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pns;

$pathParams = [
    'idPns' => 'string',
];
$filename = 'string';

Pns::downloadPhoto($pathParams, [], $disk = 'local', $filename);

// Or directly
Pns::downloadPhoto('{idPns}', [], $disk = 'local', $filename);
Kp

Get Kenaikan Pangkat from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kp;

$queryParams = [
    'periode' => 'string', // yyyy-mm-dd
];

Kp::getList([], $queryParams);

Upload Dok SK file to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Kp;

$queryParams = [
  'id_usulan' => 'string',
  'no_sk' => 'string',
  'tgl_sk' => 'string',
  'file' => 'string',
];

Kp::uploadDokSk([], $queryParams);
Pemberhentian

Get Pemberhentian from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Pemberhentian;

$queryParams = [
    'tglAwal' => 'string', // dd-mm-yyyy
    'tglAkhir' => 'string', // dd-mm-yyyy
];

Pemberhentian::getPensiunList([], $queryParams);
Riwayat

Get Riwayat Angkakredit from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getAngkakredit($pathParams);

// Or directly
Riwayat::getAngkakredit('{nipBaru}');

Get Riwayat CLTN from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getCltn($pathParams);

// Or directly
Riwayat::getCltn('{nipBaru}');

Get Riwayat Diklat from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getDiklat($pathParams);

// Or directly
Riwayat::getDiklat('{nipBaru}');

Get Riwayat DP3 from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getDp3($pathParams);

// Or directly
Riwayat::getDp3('{nipBaru}');

Get Riwayat Golongan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getGolongan($pathParams);

// Or directly
Riwayat::getGolongan('{nipBaru}');

Get Riwayat Hukdis from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getHukdis($pathParams);

// Or directly
Riwayat::getHukdis('{nipBaru}');

Get Riwayat Jabatan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getJabatan($pathParams);

// Or directly
Riwayat::getJabatan('{nipBaru}');

Get Riwayat Kinerja Periodik from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getKinerjaperiodik($pathParams);

// Or directly
Riwayat::getKinerjaperiodik('{nipBaru}');

Get Riwayat Kursus from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getKursus($pathParams);

// Or directly
Riwayat::getKursus('{nipBaru}');

Get Riwayat Masa Kerja from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getMasakerja($pathParams);

// Or directly
Riwayat::getMasakerja('{nipBaru}');

Get Riwayat Pemberhentian from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getPemberhentian($pathParams);

// Or directly
Riwayat::getPemberhentian('{nipBaru}');

Get Riwayat Pendidikan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getPendidikan($pathParams);

// Or directly
Riwayat::getPendidikan('{nipBaru}');

Get Riwayat Penghargaan from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getPenghargaan($pathParams);

// Or directly
Riwayat::getPenghargaan('{nipBaru}');

Get Riwayat Pindah Instansi from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getPindahinstansi($pathParams);

// Or directly
Riwayat::getPindahinstansi('{nipBaru}');

Get Riwayat PNS Unor from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getPnsunor($pathParams);

// Or directly
Riwayat::getPnsunor('{nipBaru}');

Get Riwayat PWK from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getPwk($pathParams);

// Or directly
Riwayat::getPwk('{nipBaru}');

Get Riwayat SKP from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getSkp($pathParams);

// Or directly
Riwayat::getSkp('{nipBaru}');

Get Riwayat SKP 2022/Kinerja from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Riwayat;

$pathParams = [
    'nipBaru' => 'string',
];

Riwayat::getSkp22($pathParams);

// Or directly
Riwayat::getSkp22('{nipBaru}');
Referensi

Get Referensi from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Referensi;

Referensi::getUnor();
Skp

Add SKP 2021 to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Skp;

$queryParams = [
  'atasanPejabatPenilai' => 'string',
  'atasanPenilaiGolongan' => 'string',
  'atasanPenilaiJabatan' => 'string',
  'atasanPenilaiNama' => 'string',
  'atasanPenilaiNipNrp' => 'string',
  'atasanPenilaiTmtGolongan' => 'string',
  'atasanPenilaiUnorNama' => 'string',
  'disiplin' => 0,
  'id' => 'string',
  'inisiatifKerja' => 0,
  'integritas' => 0,
  'jenisJabatan' => 'string',
  'jenisPeraturanKinerjaKd' => 'string',
  'jumlah' => 0,
  'kepemimpinan' => 0,
  'kerjasama' => 0,
  'komitmen' => 0,
  'konversiNilai' => 0,
  'nilaiIntegrasi' => 0,
  'nilaiPerilakuKerja' => 0,
  'nilaiPrestasiKerja' => 0,
  'nilaiSkp' => 0,
  'nilairatarata' => 0,
  'orientasiPelayanan' => 0,
  'pejabatPenilai' => 'string',
  'penilaiGolongan' => 'string',
  'penilaiJabatan' => 'string',
  'penilaiNama' => 'string',
  'penilaiNipNrp' => 'string',
  'penilaiTmtGolongan' => 'string',
  'penilaiUnorNama' => 'string',
  'pnsDinilaiOrang' => 'string',
  'statusAtasanPenilai' => 'string',
  'statusPenilai' => 'string',
  'tahun' => 0,
];

Skp::save2021([], $queryParams);

Get SKP from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Skp;

$pathParams = [
    'idRiwayatSkp' => 'string',
];

Skp::get($pathParams);

// Or directly
Skp::get('{idRiwayatSkp}');

Add SKP to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Skp;

$queryParams = [
  'atasanPejabatPenilai' => 'string',
  'atasanPenilaiGolongan' => 'string',
  'atasanPenilaiJabatan' => 'string',
  'atasanPenilaiNama' => 'string',
  'atasanPenilaiNipNrp' => 'string',
  'atasanPenilaiTmtGolongan' => 'string',
  'atasanPenilaiUnorNama' => 'string',
  'disiplin' => 0,
  'id' => 'string',
  'integritas' => 0,
  'jenisJabatan' => 'string',
  'jumlah' => 0,
  'kepemimpinan' => 0,
  'kerjasama' => 0,
  'komitmen' => 0,
  'nilaiPerilakuKerja' => 0,
  'nilaiPrestasiKerja' => 0,
  'nilaiSkp' => 0,
  'nilairatarata' => 0,
  'orientasiPelayanan' => 0,
  'pejabatPenilai' => 'string',
  'penilaiGolongan' => 'string',
  'penilaiJabatan' => 'string',
  'penilaiNama' => 'string',
  'penilaiNipNrp' => 'string',
  'penilaiTmtGolongan' => 'string',
  'penilaiUnorNama' => 'string',
  'pnsDinilaiOrang' => 'string',
  'pnsUserId' => 'string',
  'statusAtasanPenilai' => 'string',
  'statusPenilai' => 'string',
  'tahun' => 0,
];

Skp::save([], $queryParams);
Skp 2022

Get SKP 2022 from SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Skp22;

$pathParams = [
    'idRiwayatSkp' => 'string',
];

Skp22::get($pathParams);

// Or directly
Skp22::get('{idRiwayatSkp}');

Add SKP 2022 to SIASN

use Kanekescom\Siasn\Simpeg\Api\Http\Client\Skp22;

$queryParams = [
  'hasilKinerjaNilai' => 0,
  'id' => 'string',
  'kuadranKinerjaNilai' => 0,
  'path' => [
    [
      'dok_id' => 'string',
      'dok_nama' => 'string',
      'dok_uri' => 'string',
      'object' => 'string',
      'slug' => 'string',
    ],
  ],
  'penilaiGolongan' => 'string',
  'penilaiJabatan' => 'string',
  'penilaiNama' => 'string',
  'penilaiNipNrp' => 'string',
  'penilaiUnorNama' => 'string',
  'perilakuKerjaNilai' => 0,
  'pnsDinilaiOrang' => 'string',
  'statusPenilai' => 'string',
  'tahun' => 0,
];

Skp22::save([], $queryParams);

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

  • Laravel SIASN Referensi API as API client.
composer require kanekescom/laravel-siasn-referensi-api
  • Laravel SIASN Referensi as backend.
composer require kanekescom/laravel-siasn-referensi

SIASNAPI-SIMPEG APIs

  • Laravel SIASN SIMPEG API as API client.
composer require kanekescom/laravel-siasn-simpeg-api
  • Laravel SIASN SIMPEG as backend.
composer require kanekescom/laravel-siasn-simpeg

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.