Download the PHP package banguncode/php-icare without Composer
On this page you can find all versions of the php package banguncode/php-icare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download banguncode/php-icare
More information about banguncode/php-icare
Files in banguncode/php-icare
Package php-icare
Short Description A simple PHP library for accessing the healthcare history of JKN participants.
License MIT
Informations about the package php-icare
PHP Icare
A simple PHP library for accessing the healthcare history of JKN (Jaminan Kesehatan Nasional) participants via BPJS Kesehatan Icare API.
This library also supports fetching verification and approval data from the Mobile Faskes API.
Features
- Access healthcare history of JKN participants by NIK or BPJS Participant Number.
- Automatic API signature generation (HMAC-SHA256).
- Response decryption using AES-256-CBC and LZString compression.
- Retrieve verification and approval status from Mobile Faskes.
- Retry mechanism for API responses with delay instructions.
- Simple logging example included.
Requirements
- PHP >= 5.5
- Composer
- PHP extensions:
ext-curlext-openssl
Installation
Install via Composer:
Usage Example
Reference
Initialize the library with your BPJS API credentials.
Fetch healthcare history data from Icare.
- Returns a URL string on success.
- Returns an integer (seconds to wait) if API requests a retry.
- Returns null if no valid response.
- Returns false if an error occurs.
Fetch verification data from Mobile Faskes using a referer URL.
Submit an approval request to Mobile Faskes using a referer URL.
Decrypts AES-256-CBC encoded and LZString-compressed API data.
License
MIT License © 2025
Disclaimer
This library is not affiliated with BPJS Kesehatan. You must be an authorized user with valid credentials to use the BPJS Kesehatan API, and you are responsible for complying with all applicable regulations.
All versions of php-icare with dependencies
ext-curl Version *
ext-openssl Version *
nullpunkt/lz-string-php Version ^1.3