PHPackages                             kanekescom/laravel-siasn-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. kanekescom/laravel-siasn-api

ActiveLibrary[API Development](/categories/api)

kanekescom/laravel-siasn-api
============================

A Laravel package for seamless integration with the SIASN REST API

v2.0.21(1y ago)42.6k↓50%1[4 PRs](https://github.com/kanekescom/laravel-siasn-api/pulls)4MITPHPPHP ^8.2CI passing

Since Sep 17Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/kanekescom/laravel-siasn-api)[ Packagist](https://packagist.org/packages/kanekescom/laravel-siasn-api)[ Docs](https://github.com/kanekescom/laravel-siasn-api)[ Fund](https://s.id/hadibmac)[ GitHub Sponsors](https://github.com/sponsors/achmadhadikurnia)[ RSS](/packages/kanekescom-laravel-siasn-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (34)Used By (4)

Laravel SIASN API
=================

[](#laravel-siasn-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cef403b44a305a770c5dbb0db943dfcb7206d0649fe547a5cdb3758a2345a041/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616e656b6573636f6d2f6c61726176656c2d736961736e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kanekescom/laravel-siasn-api)[![GitHub Tests Action Status](https://camo.githubusercontent.com/64fe7b0f62b261e0e19ad734edb5cbdd2ebdcb999798d5e3cce61eebf5a3fc82/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b616e656b6573636f6d2f6c61726176656c2d736961736e2d6170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kanekescom/laravel-siasn-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/45c39bb032cc3b9fdc83aa7155f347ea82a757f47e332f64702739cba1e8cb35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b616e656b6573636f6d2f6c61726176656c2d736961736e2d6170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kanekescom/laravel-siasn-api/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d56904e9fb6f20025c037b4cff1ca094f6e63e3ebdfadf1a7f20200d4eecd206/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b616e656b6573636f6d2f6c61726176656c2d736961736e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kanekescom/laravel-siasn-api)

A Laravel package for seamless integration with the SIASN REST API. This library is the abstraction of SIASN API for access from applications written with Laravel PHP Framework.

Support Us
----------

[](#support-us)

Want to provide tangible support? Use the following platforms to contribute to open-source software development:

- [Buy Me a Coffee](https://s.id/hadibmac)
- [Patreon](https://s.id/hadipatreon)
- [Saweria](https://s.id/hadisaweria)

Your support is greatly appreciated!

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require kanekescom/laravel-siasn-api
```

Publish the config file:

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

Or complete all installations with:

```
php artisan siasn-api:install
```

Usage
-----

[](#usage)

### Token Generator

[](#token-generator)

Generate APIM Token:

```
php artisan siasn:apim-token
```

Generate SSO Token:

```
php artisan siasn:sso-token
```

Generate both APIM and SSO Tokens:

```
php artisan siasn:token
```

Use `--fresh` to always request a new token.

### Remove Tokens

[](#remove-tokens)

```
php artisan siasn:forget-token
```

### Available Token Methods

[](#available-token-methods)

```
use Kanekes\Siasn\Api\Credentials\Token;

Token::getNewApimToken(); // Always request a new APIM token
Token::getApimToken(); // Request APIM token

Token::getNewSsoToken(); // Always request a new SSO token
Token::getSsoToken(); // Request SSO token

Token::forget(); // Remove APIM and SSO tokens
```

### Send a Request Using Commands

[](#send-a-request-using-commands)

#### GET Request:

[](#get-request)

```
php artisan siasn:get {endpoint}
```

Example:

```
php artisan siasn:get https://apimws.bkn.go.id:8243/apisiasn/1.0/referensi/ref-unor
```

#### POST Request:

[](#post-request)

```
php artisan siasn:post {endpoint}
```

### Send a Request Using Class

[](#send-a-request-using-class)

The `Siasn` class uses Laravel's `Http` class (`Illuminate\Support\Facades\Http`):

```
use Kanekes\Siasn\Api\Facades\Siasn;

Siasn::get($endpoint, $params);
```

For dual authentication (SSO), use:

```
use Kanekes\Siasn\Api\Facades\Siasn;

Siasn::withSso()->get($endpoint, $params);
```

Testing
-------

[](#testing)

```
composer test
```

Our Other Cool Packages
-----------------------

[](#our-other-cool-packages)

### Referensi APIs

[](#referensi-apis)

- [Laravel SIASN Referensi API](https://github.com/kanekescom/laravel-siasn-referensi-api)
- [Laravel SIASN Referensi Backend](https://github.com/kanekescom/laravel-siasn-referensi)

### SIASNAPI-SIMPEG APIs

[](#siasnapi-simpeg-apis)

- [Laravel SIASN SIMPEG API](https://github.com/kanekescom/laravel-siasn-simpeg-api)
- [Laravel SIASN SIMPEG Backend](https://github.com/kanekescom/laravel-siasn-simpeg)

Changelog
---------

[](#changelog)

See [CHANGELOG](CHANGELOG.md) for recent updates.

Contributing
------------

[](#contributing)

See [CONTRIBUTING](CONTRIBUTING.md) for contribution guidelines.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

See our [security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Achmad Hadi Kurnia](https://github.com/achmadhadikurnia)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). See [License File](LICENSE.md) for details.

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance58

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Recently: every ~3 days

Total

29

Last Release

664d ago

Major Versions

v1.0.6 → v2.02023-10-16

PHP version history (2 changes)v2.0PHP ^8.1

v2.0.16PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/61120fbce750b7e0faa02a57002c4f0a0b378efc26b1b1f3bc19257f29e22fbe?d=identicon)[kanekescom](/maintainers/kanekescom)

---

Top Contributors

[![achmadhadikurnia](https://avatars.githubusercontent.com/u/4408971?v=4)](https://github.com/achmadhadikurnia "achmadhadikurnia (224 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![kanekesreal](https://avatars.githubusercontent.com/u/18681642?v=4)](https://github.com/kanekesreal "kanekesreal (5 commits)")

---

Tags

apibknkanekescomlaravellaravel-siasn-apiphpsiansiasn-apiapilaravelkanekescombknSiansiasn-apilaravel-siasn-api

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kanekescom-laravel-siasn-api/health.svg)

```
[![Health](https://phpackages.com/badges/kanekescom-laravel-siasn-api/health.svg)](https://phpackages.com/packages/kanekescom-laravel-siasn-api)
```

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)[xelon-ag/vmware-php-client

PHP API Client for VmWare

114.3k](/packages/xelon-ag-vmware-php-client)[crenspire/laravel-whatsapp

Laravel WhatsApp Business API package

133.0k](/packages/crenspire-laravel-whatsapp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
