PHPackages                             agumil/satusehat-sdk - 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. agumil/satusehat-sdk

ActiveLibrary[API Development](/categories/api)

agumil/satusehat-sdk
====================

Unofficial API wrapper package to integrate with SATUSEHAT platform.

0.8.2(5mo ago)62002[1 issues](https://github.com/agumil/satusehat-sdk/issues)MITPHPPHP &gt;=7.4.0

Since Jan 10Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/agumil/satusehat-sdk)[ Packagist](https://packagist.org/packages/agumil/satusehat-sdk)[ RSS](/packages/agumil-satusehat-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (11)Used By (0)

#### Unofficial API wrapper package to integrate with SATUSEHAT platform.

[](#unofficial-api-wrapper-package-to-integrate-with-satusehat-platform)

 [Note](#note) • [Key Features](#key-features) • [Installation](#installation) • [Quick Start](#quick-start) • [License](#license)

[![screenshot](https://camo.githubusercontent.com/f4835e739b50637fb7658b1280f57843bd7a4f2969b286e58f970a3d66411eb2/68747470733a2f2f643239306e7931306f6d797631322e636c6f756466726f6e742e6e65742f696d616765732f7361747573656861742d6f672d66622e706e67)](https://camo.githubusercontent.com/f4835e739b50637fb7658b1280f57843bd7a4f2969b286e58f970a3d66411eb2/68747470733a2f2f643239306e7931306f6d797631322e636c6f756466726f6e742e6e65742f696d616765732f7361747573656861742d6f672d66622e706e67)

Note
----

[](#note)

This package is on-progress, documentation is very limited AND you may find out that several components are incomplete. Please try this on your Development Environment first to prevent any possible break to your project.

Key Features
------------

[](#key-features)

- Payload Builder
    - Build your payload as consistent as possible with payload builder
    - Don't like it ? You could ignore this as well
- Keep it simple
    - Less 3rd party library, only required the necessary one
    - Resource class that fulfill HL7 FHIR standard
- Flexible
    - Not constrained with specific framework
    - Send your payload however you like to match your project
- Support php &gt;= 7.4

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

[](#installation)

To run this library, you'll need PHP 7.4+, and Composer. From your command line:

```
# install this package
$ composer require agumil/satusehat-sdk
```

You could save your SATUSEHAT ENVIRONMENT, CLIENT ID, and CLIENT\_SECRET to your .env file(s). From your command line:

```
# install recommended library
$ composer require vlucas/phpdotenv
```

Supported ENV:

```
# Choose one of the two options below
SATUSEHAT_ENV=staging|production
SATUSEHAT_ORGANIZATION_ID=organization_id
SATUSEHAT_CLIENT_ID=client_id
SATUSEHAT_CLIENT_SECRET=client_secret
```

> **Note**If you're using PHP verson 7.3 or below, please update your PHP.

Quick Start
-----------

[](#quick-start)

With PHPDOTENV

```
use agumil\SatuSehatSDK\Auth\Oauth2;
use agumil\SatuSehatSDK\SSClient;

$ssclient = new SSClient(new Oauth2());
$response = $ssclient->getPractitioner([
    'identifier' => 'https://fhir.kemkes.go.id/id/nakes-his-number|10009880728',
]);
```

Without PHPDOTENV

```
use agumil\SatuSehatSDK\Auth\Oauth2;
use agumil\SatuSehatSDK\Endpoint;
use agumil\SatuSehatSDK\SSClient;

$config1['base_url'] = Endpoint::DEV_OAUTH2;
$config1['client_id'] = 'your_client_id';
$config1['client_secret'] = 'your_client_secret';

$config2['base_url'] = Endpoint::DEV_FHIR;

$ssclient = new SSClient(new Oauth2($config1), $config2);
$response = $ssclient->getPractitioner([
    'identifier' => 'https://fhir.kemkes.go.id/id/nakes-his-number|10009880728',
]);
```

Credits
-------

[](#credits)

This software uses the following open source packages:

- [Composer](https://getcomposer.org/)
- [Guzzle](https://github.com/guzzle/guzzle)

License
-------

[](#license)

MIT License

Copyright (c) 2024 Agung Gumilang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance68

Regular maintenance activity

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95% 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.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~152 days

Total

10

Last Release

165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90917f54f8330649ed986e2dc324b6d757638dc4280c136210b8b259c9bc973d?d=identicon)[agumil](/maintainers/agumil)

---

Top Contributors

[![agumil](https://avatars.githubusercontent.com/u/50468474?v=4)](https://github.com/agumil "agumil (96 commits)")[![SusuTawar](https://avatars.githubusercontent.com/u/37829208?v=4)](https://github.com/SusuTawar "SusuTawar (5 commits)")

### Embed Badge

![Health badge](/badges/agumil-satusehat-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/agumil-satusehat-sdk/health.svg)](https://phpackages.com/packages/agumil-satusehat-sdk)
```

PHPackages © 2026

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