PHPackages                             andisiahaan/tripay-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. [Payment Processing](/categories/payments)
4. /
5. andisiahaan/tripay-php

ActiveLibrary[Payment Processing](/categories/payments)

andisiahaan/tripay-php
======================

Unofficial Tripay.co.id PHP SDK

v1.0.0(10mo ago)03MITPHPPHP ^8.0

Since Aug 15Pushed 10mo agoCompare

[ Source](https://github.com/andisiahaan/tripay-php)[ Packagist](https://packagist.org/packages/andisiahaan/tripay-php)[ Docs](https://github.com/andisiahaan/tripay-php)[ RSS](/packages/andisiahaan-tripay-php/feed)WikiDiscussions main Synced today

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

tripay-php
==========

[](#tripay-php)

Unofficial PHP SDK for the Tripay.co.id API.

This package provides a small, focused wrapper around Tripay endpoints using Guzzle and PSR-4 autoloading. It's suitable for small projects and internal tools. Use at your own discretion — this is an unofficial client.

Package namespace: `AndiSiahaan\\Tripay`

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

[](#installation)

Install via Composer:

```
composer require andisiahaan/tripay-php
```

Or include as a repository and require it in your `composer.json` during development.

Quick usage
-----------

[](#quick-usage)

```
require 'vendor/autoload.php';

use AndiSiahaan\Tripay\Client;

$client = new Client(getenv('TRIPAY_API_KEY'), getenv('TRIPAY_PRIVATE_KEY'), false, getenv('TRIPAY_MERCHANT_CODE'));

// Example: list payment channels
$channels = $client->paymentChannels()->list();
print_r($channels);
```

For transaction creation and Open Payment, consult the examples in `examples/` for full payloads.

Running tests
-------------

[](#running-tests)

```
php vendor\\bin\\phpunit -v
```

Debugging
---------

[](#debugging)

The client collects last request/response debug information via Guzzle `on_stats`. Use `$client->getDebugs()` after a request to inspect the raw HTTP request and response for troubleshooting.

Contributing
------------

[](#contributing)

Contributions are welcome. Please open issues or pull requests on GitHub. Keep changes small and include tests where appropriate.

License
-------

[](#license)

MIT — see `LICENSE`.

Links
-----

[](#links)

- GitHub:
- Packagist: (will be available after you publish)

Examples
--------

[](#examples)

See the `examples/` folder for runnable examples. Set these environment variables before running (PowerShell):

```
$env:TRIPAY_API_KEY='your-api-key'; $env:TRIPAY_PRIVATE_KEY='your-private-key'; $env:TRIPAY_MERCHANT_CODE='YOUR_MERCHANT_CODE'; php examples/example_create_transaction.php
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance53

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

323d ago

### Community

Maintainers

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

---

Top Contributors

[![andisiahaan](https://avatars.githubusercontent.com/u/103436266?v=4)](https://github.com/andisiahaan "andisiahaan (3 commits)")

---

Tags

phpsdkpaymenttripaytripay-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/andisiahaan-tripay-php/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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