PHPackages                             eventdbx/eventdbx-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. eventdbx/eventdbx-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eventdbx/eventdbx-php
=====================

PHP SDK for EventDBX.

v0.1.2(5mo ago)00MITRustPHP &gt;=8.1CI passing

Since Nov 27Pushed 5mo agoCompare

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

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

EventDBX PHP SDK (native)
=========================

[](#eventdbx-php-sdk-native)

This SDK talks to the EventDBX control socket directly over Cap'n Proto + Noise via a small Rust native library exposed through PHP FFI.

Build the native library
------------------------

[](#build-the-native-library)

```
cd native
cargo build --release
```

The compiled library will land in `native/target/release`:

- macOS: `libeventdbx_php_native.dylib`
- Linux: `libeventdbx_php_native.so`
- Windows: `eventdbx_php_native.dll`

If you prefer a debug build, use `cargo build` and point the PHP loader at `native/target/debug`.

PHP usage
---------

[](#php-usage)

```
use EventDbx\Client;

$client = new Client([
    'host' => '127.0.0.1',
    'port' => 6363,
    'token' => getenv('EVENTDBX_TOKEN'),
    // 'tenantId' => 'default',
    // 'noNoise' => true, // only when the server allows plaintext
]);

$page = $client->list('person', ['take' => 10]);
$created = $client->create('person', 'p-1', 'person_registered', [
    'payload' => ['name' => 'Ada'],
    'metadata' => ['@source' => 'sdk-demo'],
]);
$client->apply('person', 'p-1', 'person_updated', [
    'payload' => ['status' => 'active'],
]);
$events = $client->events('person', 'p-1');
$verify = $client->verify('person', 'p-1');
```

All client methods return associative arrays decoded from the JSON responses:

- `list`: `{ items: [...], nextCursor: string|null }`
- `events`: `{ items: [...], nextCursor: string|null }`
- `get`: `{ found: bool, aggregate: mixed }`
- `select`: `{ found: bool, selection: mixed }`
- `create`: `{ aggregate: mixed }`
- `apply` / `patch`: `{ event: mixed }`
- `archive` / `restore`: `{ aggregate: mixed }`
- `verify`: `{ merkleRoot: string }`
- `createSnapshot`: `{ snapshot: mixed }`
- `listSnapshots`: `{ items: [...snapshot rows...] }`
- `getSnapshot`: `{ found: bool, snapshot: mixed }`

### Requirements

[](#requirements)

- PHP 8.1+ with the `ffi` extension enabled.
- Rust toolchain to build the native library.
- Access to an EventDBX control endpoint and token.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance70

Regular maintenance activity

Popularity0

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

Every ~0 days

Total

3

Last Release

172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cda0c751a79f581c70f9a1c007017cf6f3215cf754b70b1f054f425f95ec544?d=identicon)[thachp](/maintainers/thachp)

---

Top Contributors

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

---

Tags

event-sourcingeventdbxphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)

PHPackages © 2026

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