PHPackages                             sandiloka/tunai - 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. sandiloka/tunai

ActiveLibrary[API Development](/categories/api)

sandiloka/tunai
===============

Tunai client SDK

v0.0.3(10y ago)0111MITPHPPHP &gt;=5.3.0

Since Oct 8Pushed 10y ago2 watchersCompare

[ Source](https://github.com/sandiloka/tunai-sdk-php)[ Packagist](https://packagist.org/packages/sandiloka/tunai)[ RSS](/packages/sandiloka-tunai/feed)WikiDiscussions master Synced 1mo ago

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

Tunai.id lib for PHP
--------------------

[](#tunaiid-lib-for-php)

This is a Tunai.id lib for PHP.

Install
-------

[](#install)

This lib can be installed using Composer. Add the following definition to your `composer.json`:

```
{
    "require": {
        "sandiloka/tunai": "*"
    }
}

```

Interact with Invoice object
----------------------------

[](#interact-with-invoice-object)

```
use Sandiloka\Tunai\Invoice;

$invoice = new Invoice('key', `secret`);

$invoiceData = array
    (
        'refId' => '1234567',
        'expired' => time() . '000', // to match JS new Date().valueOf()
        'customer' => array
            (
                "name": "Joni Iskandar",
                "phone": "08122039966",
                "address": "Jalan Senandung Raya No. 1"
            ),
        'items' => array(
            array(
                "id": "123456",
                "description": "Sepatu Warna Merah Jambu",
                "qty": 1,
                "price": 100000
            )
        )

    );

$res = $invoice.create($invoiceData);

$statusCode = $res.getStatusCode();
$json = $res.getBody();
```

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~11 days

Total

3

Last Release

3853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb5bdd5f358e756e9012bbc4330e381d5432857dfaa999ad66f73a060d0c8c92?d=identicon)[diorahman](/maintainers/diorahman)

---

Top Contributors

[![diorahman](https://avatars.githubusercontent.com/u/1234972?v=4)](https://github.com/diorahman "diorahman (6 commits)")[![ilhamrizqi](https://avatars.githubusercontent.com/u/624618?v=4)](https://github.com/ilhamrizqi "ilhamrizqi (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sandiloka-tunai/health.svg)

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

###  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)
