PHP code example of irfanmyj / api

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

    

irfanmyj / api example snippets


//use your own bpjs config
$conf = [
    'base_url' => 'https://namadomain.com',
    'service_name' => 'api'
];

// use Referensi service

$referensi = new Irfanmyj\Api\Classapi\Auth($vclaim_conf);
var_dump($referensi->login(['username'=>'tes','password'=>'123']));