PHPackages                             deantev/inhealth-integration - 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. deantev/inhealth-integration

ActiveLibrary[API Development](/categories/api)

deantev/inhealth-integration
============================

Mandiri Inhealth integration api version: v2

03PHP

Since Feb 12Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

inhealth-integration
====================

[](#inhealth-integration)

Mandiri Inhealth Integration for Laravel 10 (not yet tested on Laravel 6, 7, 8, 9 &amp; ). **Install with composer, and start integrating with no hassle**. No public assets, no vendor routes. About Mandiri Inhealth API you can read here: [Swagger](https://development.inhealth.co.id/pelkesws2/catalog/index)

Install (Laravel)
-----------------

[](#install-laravel)

Install via composer

```
composer require deantev/inhealth-integration:dev-main
```

Adding providers
----------------

[](#adding-providers)

Add Service Provider to `config/app.php` in `providers` section

```
Deantev\Inhealth\Integration\InhealthServiceProvider::class,
```

Publishing config file
----------------------

[](#publishing-config-file)

publish config file using artisan

```
php artisan vendor:publish --tag=inhealth-config
```

Setup Configuration
-------------------

[](#setup-configuration)

configure your .env

```
INHEALTH_PRODUCTION = #toogle to production url true or false (default: false)
INHEALTH_TOKEN = #Your Inhealth Token (this is required to be filled)
INHEALTH_PROVIDER_CODE = #Your Provider Code (this is required to be filled)
IHEALTH_DEV_URL = #inhealth development url (default: https://development.inhealth.co.id/pelkesws2/) you can change the value if url vendor mandiri changes.
IHEALTH_PROD_URL = #inhealth prod url (default: https://development.inhealth.co.id/pelkesws2/)
```

Example Usage
-------------

[](#example-usage)

### Usage on Function

[](#usage-on-function)

```
    use Deantev\Inhealth\Integration\Services\Inhealth as ServicesInhealth;

    public function somefunction(): array
    {
        // $data is the payload that you want to send to Mandiri Inhealth
        $data =[
            "tglpelayanan" => "2023-11-23",
            "nokainhealth" => "10015xxxxxxxx",
            "jenispelayanan" => "400904xxxxxxxx",
            "poli" => "24J",
        ]

        // Call function
        $inhealth = new ServicesInhealth;
        $result = $inhealth->postEligibilitasPeserta($data);
        return $result;
    }
```

Result
------

[](#result)

### Success Response:

[](#success-response)

The result will be array from decoded json response (data represented below are Dummy Response)

```
[
  "ERRORCODE" => "00",
  "ERRORDESC" => "Sukses",
  "NOKAPST" => "1001541995379",
  "NMPST" => "LINTANG SETIABUDI",
  "TGLLAHIR" => "1994-09-15T00:00:00",
  "KODEPRODUK" => "G",
  "NAMAPRODUK" => "GOLD",
  "KODEKELASRAWAT" => "1",
  "NAMAKELASRAWAT" => "KELAS I",
  "KODEBADANUSAHA" => "02230011",
  "NAMABADANUSAHA" => "PT GARUDA INDONESIA (PERSERO) Tbk",
  "KODEPROVIDER" => "0901K009",
  "NAMAPROVIDER" => "KLINIK GARUDA SENTRA MEDIKA",
  "NOKAPSTBPJS" => "0000165714636",
  "NMPSTBPJS" => "LINTANG SETIABUDI",
  "KELASBPJS" => "KELAS 1",
  "KODEPROVIDERBPJS" => "11030802",
  "NAMAPROVIDERBPJS" => "KALIWUNGU SELATAN",
  "FLAGPSTBPJS" => "1",
  "PRODUKCOB" => "BADAN USAHA NON COB",
  "PRIORITAS" => "",
  "TGLMULAIPST" => "2021-07-01T00:00:00",
  "TGLAKHIRPST" => "2023-12-31T00:00:00",
  "JENISKELAMIN" => "P",
]
```

### Error Response:

[](#error-response)

The result will be array from decoded json response (data represented below are Dummy Response)

```
[
  "ERRORCODE" => "07",
  "ERRORDESC" => "Peserta Tidak Terdaftar",
  "NOKAPST" => null,
  "NMPST" => null,
  "TGLLAHIR" => "0001-01-01T00:00:00",
  "KODEPRODUK" => null,
  "NAMAPRODUK" => null,
  "KODEKELASRAWAT" => null,
  "NAMAKELASRAWAT" => null,
  "KODEBADANUSAHA" => null,
  "NAMABADANUSAHA" => null,
  "KODEPROVIDER" => null,
  "NAMAPROVIDER" => null,
  "NOKAPSTBPJS" => null,
  "NMPSTBPJS" => null,
  "KELASBPJS" => null,
  "KODEPROVIDERBPJS" => null,
  "NAMAPROVIDERBPJS" => null,
  "FLAGPSTBPJS" => null,
  "PRODUKCOB" => null,
  "PRIORITAS" => null,
  "TGLMULAIPST" => "0001-01-01T00:00:00",
  "TGLAKHIRPST" => "0001-01-01T00:00:00",
  "JENISKELAMIN" => null,
]
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/6f22fe478d748d5767f6b30c2b7af93dc5caa43ab993e36e0d79bd60e35ea794?d=identicon)[DeanTevin](/maintainers/DeanTevin)

---

Top Contributors

[![DeanTevin](https://avatars.githubusercontent.com/u/45783521?v=4)](https://github.com/DeanTevin "DeanTevin (16 commits)")

### Embed Badge

![Health badge](/badges/deantev-inhealth-integration/health.svg)

```
[![Health](https://phpackages.com/badges/deantev-inhealth-integration/health.svg)](https://phpackages.com/packages/deantev-inhealth-integration)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

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

The Microsoft Graph SDK for PHP

65723.5M96](/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)
