1. Go to this page and download the library: Download susutawar/php-bpjs-bridging 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/ */
susutawar / php-bpjs-bridging example snippets
pjsBridging\Antrean\Bridging as AntreanRs;
use BpjsBridging\Config;
$konfigurasi = new Config();
$bridging = new AntreanRs($konfigurasi);
use BpjsBridging\PCare\Bridging as PCare;
use BpjsBridging\Config;
$konfigurasi = new Config();
$konfigurasi->setPCare('username', 'password', 'kodeAplikasi');
$bridging = new PCare($konfigurasi);