PHP code example of najmulfaiz / bpjs

1. Go to this page and download the library: Download najmulfaiz/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/ */

    

najmulfaiz / bpjs example snippets


//use your own bpjs config
$vclaim_conf = [
    'cons_id' => 'XXX',
    'secret_key' => 'XXX',
    'user_key' => 'XXX'
    'base_url' => 'XXX',
    'service_name' => 'XXX'
];

// use Referensi service
$referensi = new NajmulFaiz\Bpjs\VClaim\Referensi($vclaim_conf);
var_dump($referensi->diagnosa('A00'));