virusphp / bridging-bpjs
Service Briding Bpjs
Installs: 1 570
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 4
Forks: 21
Open Issues: 0
Requires
- php: ^7.3|^8.0
- nullpunkt/lz-string-php: ^1.3
- vlucas/phpdotenv: ^5.3
- dev-master
- v2.1.3
- v2.1.2
- v2.1.1
- V2.1.0
- V2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v1.4.0
- v1.3.9
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3
- v1.2
- v1.1
- v1.0
- v0.8-beta
- v0.7-beta
- v0.6-beta
- v0.5-beta
- v0.4-beta
- v0.3-beta
- v0.2-beta
- v0.1-beta
- dev-dev-curl
- dev-devel
- dev-add-license-1
This package is auto-updated.
Last update: 2024-04-07 04:56:18 UTC
README
Service-bridging adalah sebuah package yang di desain untuk mempermudah pengguna framework php untuk melakukan generate signature maupun token untuk akses ke service BPJS baik versi 1 maupun versi 2 yang akan datang, semoga package ini dapat membantu teman-teman dalam melakukan develop terhadap perkembangan service BPJS kesehatan
FEATURE
- Custom Url
- Generate Signature
- Generate Timestamp BPJS
- Generate keyString
- Decrypt String
- Decompress with (Lz-String)
Installation
Composer
composer require virusphp/bridging-bpjs
Publish Config
php artisan vendor:publish --provider="Vclaim\Bridging\BridgingBpjsServiceProvider" --tag=config
Usage
#Confirasi .env BPJS CONS_ID=xxxxx SECRET_KEY=xxxX #Config untuk Vclaim BPJS API_BPJS_VCLAIM=https://apijkn-dev.bpjs-kesehatan.go.id/vclaim-rest-dev/ USER_KEY_VCLAIM=xxxx #Config untuk Icare BPJS API_BPJS_ICARE=https://apijkn-dev.bpjs-kesehatan.go.id/ihs_dev/ #Config untuk Antrol BPJS API_BPJS_ANTROL=https://apijkn-dev.bpjs-kesehatan.go.id/antreanrs_dev/ USER_KEY_ANTROL=xxxx #Config untuk Aplicares BPJS API_BPJS_APLICARE=https://new-api.bpjs-kesehatan.go.id/aplicaresws/rest/ ##Configurasi .env untuk sirs kemkes USER_ID=xxxx PASS_ID=xxxx API_KEMKES=http://sirs.kemkes.go.id/fo/index.php/
<?php // configurasi config (Support laravel 7 ke atas) config/vclaim.php return [ 'api' => [ 'endpoint' => env('API_BPJS','ENDPOINT-KAMU'), 'consid' => env('CONS_ID','CONSID-KAMU'), 'seckey' => env('SECRET_KEY', 'SECRET-KAMU'), 'user_key' => env('USER_KEY', 'SECRET-KAMU'), ] ]
<?php // Example Controller bridging to Vclaim BPJS (Laravel 7 ke atas) use Bpjs\Bridging\Vclaim\BridgeVclaim; Class SomeController { protected $bridging; public function __construct() { $this->bridging = new BridgeVclaim(); } // Example To use get Referensi diagnosa // Name of Method example public function getDiagnosa($kode) { $endpoint = 'referensi/diagnosa/'. $kode; return $this->bridging->getRequest($endpoint); } }
<?php // Example Controller bridging to Icare BPJS (Laravel 7 ke atas) use Bpjs\Bridging\Icare\BridgeIcare; use Illuminate\Http\Request; Class SomeController { protected $bridging; public function __construct() { $this->bridging = new BridgeIcare(); } // Example To use get History // Name of Method example public function getHistory(Request $reqeust) { $data = $this->handleRequest($reqeust); $endpoint = 'api/rs/validate'; return $this->bridging->postRequest($endpoint, $data); } protected function handleRequest($request) { $data['param'] = $request->nomor_kartu; $data['kodedokter'] = $request->kode_dokter; return json_encode($data); } }
<?php // Example Controller bridging to Aplicare BPJS (Laravel 7 ke atas) use Bpjs\Bridging\Icare\BridgeAPlicares; use Illuminate\Http\Request; Class SomeController { protected $bridging; public function __construct() { $this->bridging = new BridgeAplicares(); } // Example To use get Referensi Kelas // Name of Method example public function getReferensiKelas() { $endpoint = 'ref/kelas'; return $this->bridging->getRequest($endpoint); } }
<?php // Example Controller bridging to SIRS Kemkes (Laravel 7 ke atas) use Kemkes\Bridging\BridgingKemkes; Class SomeController { protected $bridging; public function __construct() { $this->bridging = new BridgingKemkes(); } // Example To use get Referensi diagnosa // Name of Method example public function getFasyankes($kode) { $endpoint = 'Fasyankes'. $kode; return $this->bridging->getRequest($endpoint); } }
CHANEL YOUTUBE
KLIK TONTON UNTUK SUPORT (LIKE DAN KOMEN)
DONASI
- Saweria : https://saweria.co/setsuga
- VIRTUAL AKUN BCA : 122082220801333
- VIRTUAL AKUN BNI : 8807082220801333
- VIRTUAL AKUN BRI : 112082220801333
- VIRTUAL AKUN BSI : 608082220801333
- VIRTUAL AKUN MANDIRI : 893082220801333
Changelog
2023-09-09
- v2.1.2 Add new fitur briding I-care
2022-11-26
- v2.1.1 Fixed bug duplication encode string
2022-10-15
- v2.0.9 Refactoring Guzzle to curl and replace all guzzle
2022-10-07
- v2.0.9 fixed delete method for sep, surat kontrol, and rujukan
2022-02-26
- v2.0.0 Release Mayor Refactoring all service (New Service Antrol)
2022-01-29 - 2022-02-07
- v1.3.7 add support use to native php
2022-01-25
- v1.3.4 bug response antrol not same vclaim and add response antrol
2022-01-25
- v1.3.2 and v.13.3 fix bug response and add support php version 8
2022-01-12
- v1.3.1 fix bug response json to encode
2022-01-04
- v1.3 fix bug and single generate timestamp to open key
2021-12-31
- v1.2 fixed bug minor
2021-12-28
- v1.1 fixed bug minor
2021-12-27
- v1.0 Add user_key to bridging versi 2 and fix bug
2021-11-22
- v0.8-beta fix bug minor
2021-09-19
- v0.7-beta fix bug minor both briding old and new version
2021-09-19
- v0.6-beta Refactor and new fitur bridging kemkes