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

ActiveLibrary[API Development](/categories/api)

getzazu/zazu-php
================

PHP SDK for the Zazu API

v0.2.1(1mo ago)02MITPHPPHP &gt;=8.2CI passing

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/getzazu/zazu-php)[ Packagist](https://packagist.org/packages/getzazu/zazu-php)[ Docs](https://github.com/getzazu/zazu-php)[ RSS](/packages/getzazu-zazu-php/feed)WikiDiscussions main Synced 1w ago

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

zazu-php
========

[](#zazu-php)

PHP SDK for the [Zazu](https://zazu.ma) API.

```
composer require getzazu/zazu-php
```

```
use Zazu\Client;

$client = new Client(apiKey: getenv('ZAZU_API_KEY'));

$entity = $client->entity->get();

$page = $client->accounts->list();
foreach ($page->data as $account) {
    echo $account['id'], ' ', $account['name'], PHP_EOL;
}

// Initiate a transfer — it lands in your workspace's in-app approval
// queue; the API never executes a transfer itself.
$draft = $client->transferDrafts->create([
    'account_id' => $accountId,
    'beneficiary_id' => $beneficiaryId,
    'amount' => '150.00',
    'payment_reference' => 'INV-000042',
]);
```

Response shape
--------------

[](#response-shape)

Response bodies are returned as-is from the API — `snake_case` keys in an associative array, no typed models. The same shape ships across every Zazu SDK (Ruby, TypeScript, Python, Go, PHP, ...) so the cassette contract is one-to-one.

Pagination
----------

[](#pagination)

List endpoints return a `Zazu\Page` with `data`, `hasMore`, and `nextCursor`; call `next()` to fetch the following page (null when done). Page size is capped at 100.

Errors
------

[](#errors)

Non-2xx responses throw `Zazu\Exception\ApiException` with `status`, `kind` (`authentication`, `forbidden`, `not_found`, `validation`, `rate_limit`, `server`, `api`), the API's `type`/`message`/`param`, the `requestId`, and `retryAfter` for 429s. Transport failures throw `Zazu\Exception\ConnectionException`; client misconfiguration throws `Zazu\Exception\ConfigurationException`.

Tests
-----

[](#tests)

Tests replay the canonical cassettes recorded by [zazu-ruby](https://github.com/getzazu/zazu-ruby). The cassettes are downloaded from the Ruby SDK's release tarball and served from a Guzzle replay handler. Same interactions, same assertions, every language.

```
scripts/fetch-cassettes.sh
composer install
vendor/bin/phpunit
```

The SDK family
--------------

[](#the-sdk-family)

- [zazu-ruby](https://github.com/getzazu/zazu-ruby) — reference implementation (records the cassettes)
- [zazu-ts](https://github.com/getzazu/zazu-ts)
- [zazu-python](https://github.com/getzazu/zazu-python)
- [zazu-go](https://github.com/getzazu/zazu-go)
- [cli](https://github.com/getzazu/cli)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

45d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/106795?v=4)[Mikael Henriksson](/maintainers/mhenrixon)[@mhenrixon](https://github.com/mhenrixon)

---

Top Contributors

[![mhenrixon](https://avatars.githubusercontent.com/u/106795?v=4)](https://github.com/mhenrixon "mhenrixon (5 commits)")

---

Tags

apisdkBankingzazu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/getzazu-zazu-php/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

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

6.4k567.5M2.9k](/packages/aws-aws-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3751.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

639.6M57](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.7M17](/packages/checkout-checkout-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2484.5k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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