PHPackages                             belokdwi/jembatanfktp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. belokdwi/jembatanfktp

ActivePackage[API Development](/categories/api)

belokdwi/jembatanfktp
=====================

Wrapper for BPJS Indonesia Web Service API v3

1.0.5(6mo ago)037mitPHP

Since Aug 30Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/belokdwi/jembatanfktp)[ Packagist](https://packagist.org/packages/belokdwi/jembatanfktp)[ RSS](/packages/belokdwi-jembatanfktp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

BPJS Kesehatan Indonesia
========================

[](#bpjs-kesehatan-indonesia)

PHP package to access BPJS Kesehatan API.

This package is a wrapper of BPJS Web Service

Katalog:
Base URL:

Installation
------------

[](#installation)

- Require this package with composer. `composer require Belokdwi/laravel-bpjs`
- Add the ServiceProvider to the providers array in config/app.php. `Belokdwi\Bpjs\BpjsServiceProvider::class,`
- Copy the package config to your local config with the publish command: `php artisan vendor:publish --provider="Belokdwi\Bpjs\BpjsServiceProvider"`
- Update your `.env` file

```
BPJS_CONS_ID=CONSID        # consumer id
BPJS_SECRET_KEY=SECRETKEY  # secret key
BPJS_USERNAME=USERNAME     # pcare login user name
BPJS_PASSWORD=PASSWORD     # pcare login password
BPJS_USER_KEY=USERKEY      # user key
BPJS_APP_CODE=095
BPJS_BASE_URL=https://apijkn-dev.bpjs-kesehatan.go.id
BPJS_SERVICE_PCARE=pcare-rest-dev

```

Usage
-----

[](#usage)

### Diagnosa

[](#diagnosa)

```
$pcare = new Belokdwi\Bpjs\Pcare\Diagnosa();
$pcare->setKeyword('A00');
$pcare->setOffset(0);
$pcare->setLimit(10);
$response = $pcare->getDiagnosa();

// or
$pcare = new Belokdwi\Bpjs\Pcare\Diagnosa();
$response = $pcare->getDiagnosa('A00', 0, 10);

```

### Dokter

[](#dokter)

```
$pcare = new Belokdwi\Bpjs\PCare\Dokter();
$pcare->setOffset(0);
$pcare->setLimit(10);
$response = $pcare->getDokter();

// or
$pcare = new Belokdwi\Bpjs\PCare\Dokter();
$response = $pcare->getDokter(0, 10);

```

### Kesadaran

[](#kesadaran)

```
$pcare = new Belokdwi\Bpjs\PCare\Kesadaran();
$response = $pcare->getKesadaran();

```

### Peserta

[](#peserta)

#### Peserta By Nomor Kartu

[](#peserta-by-nomor-kartu)

```
$pcare = new Belokdwi\Bpjs\PCare\Peserta();
$pcare->setKeyword('0001261832477');
$response = $pcare->getPesertaByNoka();

// or
$pcare = new Belokdwi\Bpjs\PCare\Peserta();
$response = $pcare->getPesertaByNoka('0001261832477');

```

#### Peserta By NIK

[](#peserta-by-nik)

```
$pcare = new Belokdwi\Bpjs\PCare\Peserta();
$pcare->setKeyword('3174016909650001');
$response = $pcare->getPesertaByNik();

// or
$pcare = new Belokdwi\Bpjs\PCare\Peserta();
$response = $pcare->getPesertaByNik('3174016909650001');

```

### Poli

[](#poli)

```
$pcare = new Belokdwi\Bpjs\PCare\Poli();
$pcare->setOffset(0);
$pcare->setLimit(10);
$response = $pcare->getPoli();

// or
$pcare = new Belokdwi\Bpjs\PCare\Poli();
$response = $pcare->getPoli(0, 10);

```

### Provider

[](#provider)

```
$pcare = new Belokdwi\Bpjs\PCare\Provider();
$pcare->setOffset(0);
$pcare->setLimit(10);
$response = $pcare->getProvider();

// or
$pcare = new Belokdwi\Bpjs\PCare\Provider();
$response = $pcare->getProvider(0, 10);

```

### Spesialis

[](#spesialis)

#### Spesialis

[](#spesialis-1)

```
// spesialis
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getSpesialis();

```

#### Subspesialis

[](#subspesialis)

```
// sub spesialis
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$pcare->setKeyword('ANA');
$response = $pcare->getSubSpesialis();

// or
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getSubSpesialis('ANA');

```

#### Sarana

[](#sarana)

```
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getSarana();

```

#### Khusus

[](#khusus)

```
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getKhusus();

```

#### Faskes Rujukan Subspesialis

[](#faskes-rujukan-subspesialis)

```
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$pcare->setKodeSubspesialis('3');
$pcare->setKodeSarana('1');
$pcare->setTanggalRujuk('27-12-2022');
$response = $pcare->getFaskesRujukanSubspesialis();

// or
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getFaskesRujukanSubspesialis(3, 1, '27-12-2022');

```

#### Faskes Rujukan Khusus

[](#faskes-rujukan-khusus)

```
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$pcare->setKodeKhusus('IGD');
$pcare->setNomorKartu('0001261832477');
$pcare->setTanggalRujuk('27-12-2022');
$response = $pcare->getFaskesRujukanKhusus();

// or
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getFaskesRujukanKhusus('IGD', '0001261832477', '27-12-2022');

```

#### Faskes Rujukan Khusus Subspesialis

[](#faskes-rujukan-khusus-subspesialis)

```
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$pcare->setKodeKhusus('THA');
$pcare->setKodeSubspesialis('3');
$pcare->setNomorKartu('0001261832477');
$pcare->setTanggalRujuk('27-12-2022');
$response = $pcare->getFaskesRujukanKhususSubspesialis();

// or
$pcare = new Belokdwi\Bpjs\PCare\Spesialis();
$response = $pcare->getFaskesRujukanKhususSubspesialis('THA', '3', '0001261832477', '27-12-2022');

```

### Status Pulang

[](#status-pulang)

```
// rawat inap
$pcare = new Belokdwi\Bpjs\PCare\StatusPulang();
$response = $pcare->getStatusPulangRawatInap();

// rawat jalan
$pcare = new Belokdwi\Bpjs\PCare\StatusPulang();
$response = $pcare->getStatusPulangRawatJalan();

```

### Pendaftaran

[](#pendaftaran)

```
// add pendaftaran
$pcare = new Belokdwi\Bpjs\PCare\Pendaftaran();
$response = $pcare->addPendaftaran($request);

// delete pendaftaran
$pcare = new Belokdwi\Bpjs\PCare\Pendaftaran();
$response = $pcare->deletePendaftaran($nomorKartu, $tanggalDaftar, $nomorUrut, $kodePoli);

```

Contributions
-------------

[](#contributions)

Your contribution is always welcome!

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance68

Regular maintenance activity

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~86 days

Recently: every ~107 days

Total

6

Last Release

190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bbc74799eec36d1e2defd65723e4061d1252e60c35d7aa0d7d885b8cb30c7ca?d=identicon)[belok](/maintainers/belok)

### Embed Badge

![Health badge](/badges/belokdwi-jembatanfktp/health.svg)

```
[![Health](https://phpackages.com/badges/belokdwi-jembatanfktp/health.svg)](https://phpackages.com/packages/belokdwi-jembatanfktp)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
