PHPackages                             wago-id/php-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. wago-id/php-sdk

ActiveLibrary

wago-id/php-sdk
===============

Official PHP SDK for WAGO Payment ID

00PHP

Since Jul 15Pushed 1mo agoCompare

[ Source](https://github.com/wagopaymentid/wago-php-sdk)[ Packagist](https://packagist.org/packages/wago-id/php-sdk)[ RSS](/packages/wago-id-php-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

WAGO PHP SDK
============

[](#wago-php-sdk)

Official PHP SDK untuk layanan pembayaran [WAGO Payment ID](https://wago-id.web.id).

Instalasi
---------

[](#instalasi)

Gunakan Composer:

```
composer require wago-id/php-sdk
```

Penggunaan
----------

[](#penggunaan)

### Inisialisasi

[](#inisialisasi)

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

use Wago\Wago;

$wago = new Wago([
    'appId' => 'APP_ID_ANDA',
    'apiKey' => 'API_KEY_ANDA',
    'webhookSecret' => 'WEBHOOK_SECRET_ANDA' // Opsional, diperlukan untuk validasi webhook
]);
```

### Membuat Transaksi

[](#membuat-transaksi)

```
try {
    $trx = $wago->createTransaction([
        'order_id' => 'INV-' . time(),
        'nominal' => 150000,
        'customer_name' => 'Budi Santoso',
        'payment_method' => 'QRIS',
        'is_sandbox' => true
    ]);

    print_r($trx);
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}
```

### Memvalidasi Webhook

[](#memvalidasi-webhook)

```
$headers = getallheaders();
$signature = $headers['X-WAGO-Signature'] ?? '';
$timestamp = $headers['X-WAGO-Timestamp'] ?? '';

$rawBody = file_get_contents('php://input');
$body = json_decode($rawBody, true);

if ($wago->verifyWebhook($body, $signature, $timestamp)) {
    http_response_code(200);
    echo json_encode(["status" => "ok"]);
} else {
    http_response_code(403);
    echo json_encode(["error" => "Invalid signature"]);
}
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance60

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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/6b772d52812395837c4fdeebf40f2d696a0ce44b84d4932cf176b4b2f8bf51ac?d=identicon)[wagopaymentid](/maintainers/wagopaymentid)

---

Top Contributors

[![AmosFigueroa](https://avatars.githubusercontent.com/u/248863337?v=4)](https://github.com/AmosFigueroa "AmosFigueroa (1 commits)")

### Embed Badge

![Health badge](/badges/wago-id-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/wago-id-php-sdk/health.svg)](https://phpackages.com/packages/wago-id-php-sdk)
```

PHPackages © 2026

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