Service-bridging adalah sebuah package yang di desain untuk mempermudah pengguna framework php untuk melakukan generate signature maupun token untuk akses ke service BPJS baik versi 1 maupun versi 2 yang akan datang, semoga package ini dapat membantu teman-teman dalam melakukan develop terhadap perkembangan service BPJS kesehatan
- Custom Url
- Generate Signature
- Generate Timestamp BPJS
- Generate keyString
- Decrypt String
- Decompress with (Lz-String)
composer require virusphp/bridging-bpjs
php artisan vendor:publish --provider="Vclaim\Bridging\BridgingBpjsServiceProvider" --tag=config
//Confirasi .env BPJS
CONS_ID=xxxxx
SECRET_KEY=xxxX
// Config untuk Vclaim BPJS
API_BPJS_VCLAIM=https://apijkn-dev.bpjs-kesehatan.go.id/vclaim-rest-dev/
USER_KEY_VCLAIM=xxxx
// Config untuk Antrol BPJS
API_BPJS_ANTROL=https://apijkn-dev.bpjs-kesehatan.go.id/antreanrs_dev/
USER_KEY_ANTROL=xxxx
//Configurasi .env untuk sirs kemkes
USER_ID=xxxx
PASS_ID=xxxx
API_KEMKES=http://sirs.kemkes.go.id/fo/index.php/
<?php
// configurasi config (Support laravel 7 ke atas)
config/vclaim.php
return [
'api' => [
'endpoint' => env('API_BPJS','ENDPOINT-KAMU'),
'consid' => env('CONS_ID','CONSID-KAMU'),
'seckey' => env('SECRET_KEY', 'SECRET-KAMU'),
'user_key' => env('USER_KEY', 'SECRET-KAMU'),
]
]
<?php
// Example Controller bridging to Vclaim BPJS (Laravel 7 ke atas)
use Bpjs\Bridging\Vclaim\BridgeVclaim;
Class SomeController
{
protected $bridging;
public function __construct()
{
$this->bridging = new BridgeVclaim();
}
// Example To use get Referensi diagnosa
// Name of Method example
public function getDiagnosa($kode)
{
$endpoint = 'referensi/diagnosa/'. $kode;
return $this->bridging->getRequest($endpoint);
}
}
<?php
// Example Controller bridging to SIRS Kemkes (Laravel 7 ke atas)
use Kemkes\Bridging\BridgingKemkes;
Class SomeController
{
protected $bridging;
public function __construct()
{
$this->bridging = new BridgingKemkes();
}
// Example To use get Referensi diagnosa
// Name of Method example
public function getFasyankes($kode)
{
$endpoint = 'Fasyankes'. $kode;
return $this->bridging->getRequest($endpoint);
}
}
- v2.0.0 Release Mayor Refactoring all service (New Service Antrol)
- v1.3.7 add support use to native php
- v1.3.4 bug response antrol not same vclaim and add response antrol
- v1.3.2 and v.13.3 fix bug response and add support php version 8
- v1.3.1 fix bug response json to encode
- v1.3 fix bug and single generate timestamp to open key
- v1.2 fixed bug minor
- v1.1 fixed bug minor
- v1.0 Add user_key to bridging versi 2 and fix bug
- v0.8-beta fix bug minor
- v0.7-beta fix bug minor both briding old and new version
- v0.6-beta Refactor and new fitur bridging kemkes
- v0.5-beta Refactor and update documentation
- v0.2-beta Refactor code and add documentation readme
- v0.1-beta Upgraded codebase to be compatible to PHP 8.
- Added v0.1-beta to packagist/composer virusphp/service-bridging
- Using the Guzzle and Lz-string repositories (guzzlehttp/guzzle) and (nullpunkt/lz-string-php)
- Overhaul and refactor generate signature service BPJS by virusphp