GithubHelp home page GithubHelp logo

kanekescom / laravel-siasn-referensi-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 94 KB

SIASN REFERENSI REST API Client for Laravel

License: MIT License

PHP 100.00%
api laravel laravel-siasn-referensi-api kanekescom referensi-api sian siasn-api php

laravel-siasn-referensi-api's Introduction

Laravel SIASN REFERENSI API

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

SIASN REFERENSI REST API Client for Laravel. This library is the abstraction of SIASN REFERENSI 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. Feel free to contact us at [email protected] or @achmadhadikurnia (maintainer) 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-api

You can publish the config file with:

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

This is the contents of the published config file:

// config/siasn-referensi-api.php
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Base URL
    |--------------------------------------------------------------------------
    |
    | This base url is used for the SIASN REFERENSI API.
    |
    */

    'base_url' => 'https://apimws.bkn.go.id:8243/referensi_siasn/1',

];

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

php artisan siasn-referensi-api:install

Usage

Get data using console

Get referensi data from SIASN

php artisan siasn-referensi:get

Get specific endpoint referensi data from SIASN

php artisan siasn-referensi:get 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

Optional:

  • --limit=n limit n number of records
  • --offset=n offset n number of records

Get data using Referensi class

Get referensi data from API

use Kanekescom\Siasn\Referensi\Api\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.

laravel-siasn-referensi-api's People

Contributors

achmadhadikurnia avatar dependabot[bot] avatar kanekesreal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.