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

ActiveLibrary[Payment Processing](/categories/payments)

zenobank/sdk
============

ZenoBank PHP SDK for payment checkout and webhook verification

v1.5.0(2mo ago)021MITPHPPHP ^8.1

Since Apr 1Pushed 2mo agoCompare

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

READMEChangelog (1)DependenciesVersions (7)Used By (0)

ZenoBank PHP SDK
================

[](#zenobank-php-sdk)

The official PHP SDK for ZenoBank's Crypto Payment Gateway API. Accept crypto payments with checkout sessions and verify webhooks.

- **Dashboard** — [dashboard.zenobank.io](https://dashboard.zenobank.io) (create an account and get your API key)
- **Documentation** — [docs.zenobank.io](https://docs.zenobank.io)
- **Checkout demo** — [pay.zenobank.io/demo](https://pay.zenobank.io/demo)
- **Support** — [zenobank.io/support](https://zenobank.io/support)

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

[](#installation)

```
composer require zenobank/sdk
```

Usage
-----

[](#usage)

### Initialize the client

[](#initialize-the-client)

```
use ZenoBank\Sdk\ZenoBankClient;

$client = new ZenoBankClient('your-api-key');
```

### Create a checkout

[](#create-a-checkout)

```
$checkout = $client->checkouts->create([
    'order_id' => 'order-123',
    'price_amount' => '10.00',
    'price_currency' => 'USD',
    'success_redirect_url' => 'https://example.com/success',
]);

// Redirect the customer
header('Location: ' . $checkout->checkout_url);
```

### Verify webhooks

[](#verify-webhooks)

```
use ZenoBank\Sdk\Exceptions\WebhookVerificationError;
use ZenoBank\Sdk\Types\Generated\CheckoutStatus;
use ZenoBank\Sdk\Types\WebhookEvent;

$payload = file_get_contents('php://input');
$headers = getallheaders();
$secret = 'whsec_...';

try {
    $client->webhooks->verify($payload, $secret, $headers);
    $event = WebhookEvent::from_array(json_decode($payload, true));

    if ($event->data->status === CheckoutStatus::COMPLETED) {
        // Payment received
    }
} catch (WebhookVerificationError $e) {
    // Invalid signature or missing headers
    http_response_code(400);
}
```

### Get a checkout

[](#get-a-checkout)

```
$checkout = $client->checkouts->get('ch_0gJfH4a9B2Eg1jpES');
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance84

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Every ~2 days

Total

6

Last Release

81d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22facac20bd7107d2fb517dda4729440fde58dac9a358427adb0bdb35ebea038?d=identicon)[hugopino](/maintainers/hugopino)

---

Top Contributors

[![hugopino](https://avatars.githubusercontent.com/u/102437612?v=4)](https://github.com/hugopino "hugopino (8 commits)")

### Embed Badge

![Health badge](/badges/zenobank-sdk/health.svg)

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

PHPackages © 2026

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