PHP code example of rajifafif / bpjs
1. Go to this page and download the library: Download rajifafif/bpjs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rajifafif / bpjs example snippets
//use your own bpjs config
$vclaim_conf = [
'cons_id' => '123456',
'secret_key' => '123456',
'base_url' => 'https://apijkn-dev.bpjs-kesehatan.go.id',
'service_name' => 'vclaim-rest-dev',
'user_key' => 'd795b04f4a72d74fae727be9da0xxxxx'
];
// use Referensi service
// https://dvlp.bpjs-kesehatan.go.id:8888/trust-mark/main.html#/mitra/katalog/vclaim/referensi - Propinsi
$referensi = new Rajifafif\Bpjs\VClaim\Referensi($vclaim_conf);
var_dump($referensi->propinsi());