PHPackages                             rochedb/rochedb - 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. [Database &amp; ORM](/categories/database)
4. /
5. rochedb/rochedb

ActiveLibrary[Database &amp; ORM](/categories/database)

rochedb/rochedb
===============

PHP FFI driver for RocheDB

v0.1.2(1mo ago)07Apache-2.0PHPPHP &gt;=8.2CI passing

Since Jul 9Pushed 1mo agoCompare

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

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

KoutenDB PHP Driver
===================

[](#koutendb-php-driver)

PHP FFI driver for [KoutenDB](https://github.com/puffball1567/koutendb).

This package wraps the KoutenDB C ABI. It is intended as the foundation for plain PHP integrations and later Laravel/Symfony adapters. It does not try to pretend KoutenDB is an SQL database or an Eloquent model backend.

Status
------

[](#status)

- Package: [Packagist `koutendb/koutendb`](https://packagist.org/packages/koutendb/koutendb)
- Current mode: C ABI / FFI wrapper
- PHP: 8.2+
- Requires: `ext-ffi`
- KoutenDB core: local C ABI v2 shared library, KoutenDB core v0.3.0+

Install
-------

[](#install)

Install from Packagist:

```
composer require koutendb/koutendb:^0.1
```

For local development from a checkout, you can still use a Composer path repository.

Build the KoutenDB shared library first:

```
git clone https://github.com/puffball1567/koutendb.git
cd koutendb
nimble install -y
nim c --app:lib -d:release --nimcache:/tmp/nimcache_kouten_capi -o:lib/libkoutendb.so src/koutendb_capi.nim
```

At runtime, make sure PHP can find both the driver and `libkoutendb.so`:

```
LD_LIBRARY_PATH=/path/to/koutendb/lib php app.php
```

Local PHP must have `ext-ffi` enabled. If Composer reports `ext-ffi` as missing, enable PHP FFI for CLI and runtime use before installing in a real project. For repository verification without changing local PHP, use the Docker smoke test below.

Example
-------

[](#example)

```
