PHPackages                             maludb/client - 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. maludb/client

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

maludb/client
=============

PHP driver for MaluDB — a memory DBMS on PostgreSQL.

v0.1.0(3w ago)012PostgreSQLPHPPHP &gt;=8.2

Since May 17Pushed 3w agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

`maludb/client` — PHP driver for MaluDB
=======================================

[](#maludbclient--php-driver-for-maludb)

PHP 8.2+ client for the maludb\_core extension. Mirrors the [Python](../python/README.md) and [Node.js](../nodejs/README.md)drivers in shape and method names.

Status: **alpha**. v0.1.0 covers the headline read/write surface; streaming, pool retrieval, and the workflow-extraction helpers land in later versions.

Requirements
------------

[](#requirements)

PHP&gt;= 8.2Extensions`ext-pdo`, `ext-pdo_pgsql`, `ext-json`PostgreSQLmaludb\_core 0.41.0+ installed in the target DBOn Ubuntu 24.04:

```
sudo apt install php-cli php-pgsql
```

Composer is needed for the autoload + dev deps:

```
# If composer isn't installed, install it system-wide:
curl -sS https://getcomposer.org/installer -o composer-setup.php
php composer-setup.php
sudo mv composer.phar /usr/local/bin/composer
rm composer-setup.php
composer --version
```

If you do not have sudo access, install Composer for your user instead:

```
mkdir -p "$HOME/.local/bin"
curl -sS https://getcomposer.org/installer | php -- --install-dir="$HOME/.local/bin" --filename=composer
"$HOME/.local/bin/composer" --version
```

If the user-local `composer` command is not found in a new shell, add `$HOME/.local/bin` to your `PATH`:

```
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile
. ~/.profile
```

Install
-------

[](#install)

The PHP driver is currently distributed from this repository. The Packagist package name is reserved as `maludb/client`, but a plain `composer require maludb/client` only works after the package has been published to Packagist.

To run examples or tests from this source tree:

```
git clone https://github.com/maludb/maludb-core.git
cd maludb-core/drivers/php
composer install
```

To use the driver from another PHP project before the Packagist package is published, point Composer at your local checkout:

```
cd /path/to/your/php-project
composer init --no-interaction --name=local/maludb-app   # skip if composer.json already exists
composer config repositories.maludb-client path /path/to/maludb-core/drivers/php
composer require 'maludb/client:*@dev'
```

Quickstart
----------

[](#quickstart)

```
