PHPackages                             obanach/zen-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. [API Development](/categories/api)
4. /
5. obanach/zen-php-sdk

ActiveLibrary[API Development](/categories/api)

obanach/zen-php-sdk
===================

PHP client library for creating checkouts and IPN validation via ZEN.COM API

1.0.1(1y ago)51711[2 issues](https://github.com/obanach/zen-php-sdk/issues)MITPHPPHP &gt;=8.1

Since Mar 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/obanach/zen-php-sdk)[ Packagist](https://packagist.org/packages/obanach/zen-php-sdk)[ RSS](/packages/obanach-zen-php-sdk/feed)WikiDiscussions master Synced 3w ago

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

Zen.com PHP SDK
===============

[](#zencom-php-sdk)

[![](https://camo.githubusercontent.com/c15c5999aad5d10630adeafe95fe8918248f1ca14a0344f7b3c9c354c4168845/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f62616e6163682f7a656e2d7068702d73646b3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/c15c5999aad5d10630adeafe95fe8918248f1ca14a0344f7b3c9c354c4168845/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f62616e6163682f7a656e2d7068702d73646b3f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/c9e29ea416a9df6a93d156ae14f673e81b751df45ade8acd964a8a517585448f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f62616e6163682f7a656e2d7068702d73646b2f7068702e796d6c3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/c9e29ea416a9df6a93d156ae14f673e81b751df45ade8acd964a8a517585448f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f62616e6163682f7a656e2d7068702d73646b2f7068702e796d6c3f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/da1feafa9464ce7b3702d8bbc691b63cd62d2e69c961bb59e27bdad1be7d4162/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f62616e6163682f7a656e2d7068702d73646b3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/da1feafa9464ce7b3702d8bbc691b63cd62d2e69c961bb59e27bdad1be7d4162/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f62616e6163682f7a656e2d7068702d73646b3f7374796c653d666f722d7468652d6261646765)

PHP client library for creating and retrieving payments via ZEN.COM API

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

[](#installation)

```
composer require obanach/zen-php-sdk
```

Usage
-----

[](#usage)

### Create checkout

[](#create-checkout)

```
use Zen\ZenClient;

$client = new ZenClient('PAYWALL_SECRET', 'IPN_SECRET', 'TERMINAL_UUID');

$checkout = $client->createCheckout([
    'merchantTransactionId' => 'myCustomTransactionId',
    'amount' => 10.00,
    'currency' => 'PLN',
    'customer' => [
        'firstName' => 'John',
        'lastName' => 'Doe',
        'email' => 'john@example.com'
    ],
    'items' => [
        [
            'code' => 't-shirt',
            'name' => 'Blue t-shirt',
            'price' => 10.00,
            'quantity' => 1,
            'lineAmountTotal' => 10.00,
        ]
    ]
]);

if ($checkout->getStatus()) {
    $checkout->getCheckoutUrl();
} else {
    $checkout->getMessage();
}
```

### Validate IPN

[](#validate-ipn)

```
use Zen\ZenClient;

$client = new ZenClient('PAYWALL_SECRET', 'IPN_SECRET', 'TERMINAL_UUID');

// raw json data received from IPN
$json = '{"merchantTransactionId":"myCustomTransactionId","amount":"10.00","currency":"EUR","status":"PAID","hash":"5CD4255C8BEE2A45ADF57DA13CADCA406FF4C5D2A1046E5EF719890A8FB09807"}'

$validate = $client->validateIpn($json);

if ($validate->getStatus()) {
    // validate on your own if currency and amount are correct
    $validate->getMerchantTransactionId();
    $validate->getCurrency();
    $validate->getAmount();
    $validate->getPaymentStatus();
} else {
    // handle error
    $validate->getMessage();
}
```

API Documentation
-----------------

[](#api-documentation)

See the official zen.com [API documentation](https://www.zen.com/developer/)

License
-------

[](#license)

MIT license.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.2% 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 ~593 days

Total

2

Last Release

600d ago

### Community

Maintainers

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

---

Top Contributors

[![obanach](https://avatars.githubusercontent.com/u/35408041?v=4)](https://github.com/obanach "obanach (35 commits)")[![huzaifaarain](https://avatars.githubusercontent.com/u/8613679?v=4)](https://github.com/huzaifaarain "huzaifaarain (1 commits)")

---

Tags

zenzen-comzen-phpzen-php-sdk

### Embed Badge

![Health badge](/badges/obanach-zen-php-sdk/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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