PHPackages                             joseffi\_copy/bpjs2 - 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. joseffi\_copy/bpjs2

ActivePackage[API Development](/categories/api)

joseffi\_copy/bpjs2
===================

Wrapper for BPJS Indonesia

08PHP

Since Feb 18Pushed 4y agoCompare

[ Source](https://github.com/trogalko/bpjs2)[ Packagist](https://packagist.org/packages/joseffi_copy/bpjs2)[ RSS](/packages/joseffi-copy-bpjs2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#bpjs-kesehatan-indonesia)

PHP package to access BPJS Kesehatan API 🚑. This package is a wrapper of BPJS VClaim Web Service

Created because i don't really wanna get my hands dirty coz of using the old php-curl :shit: example.

#### Installation 🔥

[](#installation-fire)

`composer require Nsulistiyawan_copy/bpjs`

#### Example Usage 🎊

[](#example-usage-confetti_ball)

```
//use your own bpjs config
$vclaim_conf = [
    'cons_id' => '123456',
    'secret_key' => '123456',
    'base_url' => 'https://dvlp.bpjs-kesehatan.go.id',
    'service_name' => 'vclaim-rest'
];

// use Referensi service
// https://dvlp.bpjs-kesehatan.go.id/VClaim-Katalog/Referensi

$referensi = new Nsulistiyawan_copy\Bpjs\VClaim\Referensi($vclaim_conf);
var_dump($referensi->diagnosa('A00'));

//use Peserta service
//https://dvlp.bpjs-kesehatan.go.id/VClaim-Katalog/Peserta

$peserta = new \Nsulistiyawan_copy\Bpjs\VClaim\Peserta($vclaim_conf);
var_dump($peserta->getByNoKartu('123456789','2018-09-16'));
```

#### Supported Services (WIP) 🚀

[](#supported-services-wip-rocket)

- Referensi
- Peserta
- SEP
- Rujukan
- Lembar Pengajuan Klaim
- Monitoring
- Aplicare

#### Contributions 👌

[](#contributions-ok_hand)

Your contribution is always welcome!

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/47cc5f147de31e19f6185b26309524f31ae48ccac844c055e9db7be8583cb804?d=identicon)[trogalko](/maintainers/trogalko)

---

Top Contributors

[![joseffi](https://avatars.githubusercontent.com/u/57702968?v=4)](https://github.com/joseffi "joseffi (12 commits)")[![trogalko](https://avatars.githubusercontent.com/u/107082?v=4)](https://github.com/trogalko "trogalko (9 commits)")

### Embed Badge

![Health badge](/badges/joseffi-copy-bpjs2/health.svg)

```
[![Health](https://phpackages.com/badges/joseffi-copy-bpjs2/health.svg)](https://phpackages.com/packages/joseffi-copy-bpjs2)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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