PHPackages                             purwantaraid/purwantara-php - 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. purwantaraid/purwantara-php

ActiveLibrary

purwantaraid/purwantara-php
===========================

PHP Wrapper for Purwantara API.

v0.0.1(2y ago)034MITPHPPHP ^8.1CI passing

Since Oct 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/PurwantaraID/purwantara-php)[ Packagist](https://packagist.org/packages/purwantaraid/purwantara-php)[ Docs](https://github.com/purwantaraid/purwantara-php)[ RSS](/packages/purwantaraid-purwantara-php/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Purwantara PHP
==============

[](#purwantara-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2d13212e58c89f4bf6f9e586bbbf521e316be3ee049ad3b0736cd0a243a5989a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70757277616e7461726169642f70757277616e746172612d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/purwantaraid/purwantara-php)[![Tests](https://camo.githubusercontent.com/61ccfb7656df535402828afccb2cfbf47bd2741b2b48fb04991b302409794ee8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70757277616e7461726169642f70757277616e746172612d7068702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/purwantaraid/purwantara-php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/7f88e5ea422fe6ff04e55b80609cfce1ec9f675738343e78cd8ddc5c25b97988/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70757277616e7461726169642f70757277616e746172612d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/purwantaraid/purwantara-php)

PHP Wrapper for Purwantara API.

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

[](#installation)

You can install the package via composer:

```
composer require purwantaraid/purwantara-php
```

Usage
-----

[](#usage)

```
$config = [
    'is_sandbox' => false,
    'token' => 'XXXXXXXX'
];
```

### Virtual Account

[](#virtual-account)

```
use Purwantara\Purwantara\Collect\VirtualAccount;

$request = new VirtualAccount($config);

// Create transaction
$response = $request->create($data);

// Get all transactions
$response = $request->get();

// Get transaction by UUID
$response = $request->get($uuid);

// Cancel transaction by UUID
$response = $request->cancel($uuid);
```

### QRIS

[](#qris)

```
use Purwantara\Purwantara\Collect\Qris;

$request = new Qris($config);

// Create transaction
$response = $request->create($data);

// Get all transactions
$response = $request->get();

// Get transaction by UUID
$response = $request->get($uuid);
```

### Over the Counter

[](#over-the-counter)

```
use Purwantara\Purwantara\Collect\Otc;

$request = new Otc($config);

// Create transaction
$response = $request->create($data);

// Get all transactions
$response = $request->get();

// Get transaction by UUID
$response = $request->get($uuid);
```

### Payment Link

[](#payment-link)

```
use Purwantara\Purwantara\Collect\PaymentLink;

$request = new PaymentLink($config);

// Create transaction
$response = $request->create($data);

// Get transaction
$response = $request->get($uuid);
```

Testing
-------

[](#testing)

```
PPN_TOKEN="XXXX" composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance57

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aec55704f55f6828d892ca89d2bb8d830422a35f210a786ab6903a668caf3b5?d=identicon)[Kristories](/maintainers/Kristories)

---

Top Contributors

[![Kristories](https://avatars.githubusercontent.com/u/774338?v=4)](https://github.com/Kristories "Kristories (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![dioanres](https://avatars.githubusercontent.com/u/39616037?v=4)](https://github.com/dioanres "dioanres (3 commits)")

---

Tags

purwantarapurwantara-php

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/purwantaraid-purwantara-php/health.svg)

```
[![Health](https://phpackages.com/badges/purwantaraid-purwantara-php/health.svg)](https://phpackages.com/packages/purwantaraid-purwantara-php)
```

PHPackages © 2026

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