Download the PHP package maludb/client without Composer
On this page you can find all versions of the php package maludb/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maludb/client
More information about maludb/client
Files in maludb/client
Package client
Short Description PHP driver for MaluDB — a memory DBMS on PostgreSQL.
License PostgreSQL
Homepage https://github.com/edwardhonour/maludb-core
Informations about the package client
maludb/client — PHP driver for MaluDB
PHP 8.2+ client for the maludb_core extension. Mirrors the Node.js 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
| PHP | >= 8.2 |
| Extensions | ext-pdo, ext-pdo_pgsql, ext-json |
| PostgreSQL | maludb_core 0.41.0+ installed in the target DB |
On Ubuntu 24.04:
Composer is needed for the autoload + dev deps:
If you do not have sudo access, install Composer for your user instead:
If the user-local composer command is not found in a new shell, add
$HOME/.local/bin to your PATH:
Install
The PHP driver is currently distributed using composer.
You can also install the package an refer to the example code by cloning the repo.
Quickstart
Available methods
| Group | Methods |
|---|---|
| Ingest | registerSourcePackage, registerClaim, registerFact, registerMemory, registerEpisode |
| Retrieve | textSearch, retrieve, replayEpisode |
| Pool | createPool, poolAddObservation, poolPromoteToClaim |
| Skill | registerSkill, addSkillState, addSkillTransition, beginSkillExecution, stepSkillExecution, abortSkillExecution |
| Node | registerLocalNode, nodeSubmit, nodeAccept, nodeReject, revokeLocalNode |
| Misc | version(), raw (the underlying PDO instance) |
Exception hierarchy
catch (MaluDBNotFound $e) { … }. All classes live in
MaluDB\Exceptions\.
Running tests
All versions of client with dependencies
ext-pdo Version *
ext-pdo_pgsql Version *
ext-json Version *