PHP code example of absystem / wsbpjs

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

    

absystem / wsbpjs example snippets


 
//vclaim
$config = [
	'cons_id'      => '',
	'secret_key'   => '',
	'base_url'     => 'https://new-api.bpjs-kesehatan.go.id:8080',
	'service_name' => 'new-vclaim-rest'
];


//aplicaresws
$config = [
	'cons_id'      => '',
	'secret_key'   => '',
	'base_url'     => 'https://new-api.bpjs-kesehatan.go.id:8080',
	'service_name' => 'aplicaresws/rest'
];


//pcare
$config = [
	'cons_id'      => '',
	'secret_key'   => '',
	'base_url'     => 'https://dvlp.bpjs-kesehatan.go.id:9081',
	'service_name' => 'pcare-rest-v3.0',
	'pcare_user'   => '',
	'pcare_pass'   => '',
	'kd_aplikasi'  => ''
];


$referensi = new \ABSystem\Bpjs\VClaim\Referensi($config);
var_dump($referensi->diagnosa('A00'));