PHPackages                             pecunia-wallet/pecunia-sdk-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. pecunia-wallet/pecunia-sdk-php

ActiveLibrary

pecunia-wallet/pecunia-sdk-php
==============================

Pecunia Wallet PHP SDK

v1.0.0(1mo ago)00MITPHPPHP &gt;=8.0

Since Mar 18Pushed 1mo agoCompare

[ Source](https://github.com/Pecunia-Wallet/pecunia-sdk-php)[ Packagist](https://packagist.org/packages/pecunia-wallet/pecunia-sdk-php)[ Docs](https://github.com/pecunia-wallet/pecunia-sdk-php)[ RSS](/packages/pecunia-wallet-pecunia-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

This is Pecunia Wallet PHP SDK
==============================

[](#this-is-pecunia-wallet-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/40d5341eaf754864aeffd4d23f6da8b455c653a785180032dd87153981ad47a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706563756e69612d77616c6c65742f706563756e69612d73646b2d706870)](https://packagist.org/packages/pecunia-wallet/pecunia-sdk-php)[![License](https://camo.githubusercontent.com/8f2afd2f95a4808ba627f53d28a2e96f1d729383a8fc85cd1404ef619230701f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706563756e69612d77616c6c65742f706563756e69612d73646b2d706870)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/292d7dbcb862330158dea029ead06a65b548c717b6a23fbbd9562d86f61a8588/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706563756e69612d77616c6c65742f706563756e69612d73646b2d706870)](https://www.php.net/)

This SDK provides an easy way to interact with [Pecunia Wallet REST API](https://pecuniawallet.com/docs/index.html). Consult it for rich details.

### Installation

[](#installation)

Install via Composer:

```
$ composer require pecunia-wallet/pecunia-sdk-php
```

### Usage

[](#usage)

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

// Initialize client
$client = new \Pecunia\Client('your-api-token-here');

// Get all invoices
$invoices = $client->getAllInvoices();
foreach ($invoices as $invoice) {
    echo "Invoice ID: {$invoice->id}, Requested Amount: {$invoice->amount->requested}\n";
}

// Create new invoice
$newInvoiceRef = $client->createInvoice([
    'amount' => '10',
    'sourceCurrency' => 'USD',
    'lifeTime' => 'PT1H', // 1 hour
    'availableCoins' => ['BTC', 'LTC']
]);

// Invoice details
$invoiceDetails = $client->getInvoice($newInvoiceRef->id);

// Get a payment link for the user
$paymentUrl = $newInvoiceRef->paymentUrl; // or $invoiceDetails->paymentUrl

// Verify callback signature
$payload = "request-body";              // Raw callback body
$header = "request-x-signature-header"; // X-Signature header
$secret = "your-callback-secret-here";  // Your callback secret

$ver = \Pecunia\Callback::verifySignature(
    $payload,
    $header,
    currentSecret: $secret,
    previousSecret: $secret // Previous secret is optional but supported for rotation
);

if ($ver) {
    echo "Verified signature with " . ($ver == 'v0' ? 'previous' : 'current') . "secret";
} else {
    echo "Failed to verify the signature.\n";
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance89

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

56d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/782c0c13968d561039a37b52f8bee4c646d8ba30a5effe67e400bda23e8eeaa3?d=identicon)[RolandBretz](/maintainers/RolandBretz)

---

Tags

phpsdkwalletpecunia

### Embed Badge

![Health badge](/badges/pecunia-wallet-pecunia-sdk-php/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1204.3k](/packages/zenditplatform-zendit-php-sdk)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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