Download the PHP package muninndb/client without Composer
On this page you can find all versions of the php package muninndb/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package client
MuninnDB PHP SDK
Official PHP client for MuninnDB — the cognitive memory database.
Framework-agnostic. Works in WordPress, Laravel, CodeIgniter, or plain PHP scripts with zero framework dependencies.
Features
- All 24 MuninnDB REST API operations
- Typed response objects with readonly properties (PHP 8.1+)
- Clean named-argument API
- Automatic retry with exponential backoff on 5xx / connection errors
- Server-Sent Events (SSE) streaming via iterable
SseStream - PSR-4 autoloading, Composer-ready
- Native
curlonly — no Guzzle, no framework coupling
Requirements
- PHP 8.1+
ext-curlext-json
Installation
Quick Start
Framework Examples
WordPress
Laravel
CodeIgniter
Vanilla PHP
Full API Reference
Constructor
Core CRUD
write(...) — Write a single engram
writeBatch(...) — Write up to 50 engrams
read(id, vault) — Read a single engram
forget(id, vault, hard) — Soft or hard delete
activate(...) — Recall by context
link(...) — Associate two engrams
Extended Operations
evolve(id, newContent, reason, vault) — Update content
consolidate(ids, mergedContent, vault) — Merge engrams
decide(decision, rationale, alternatives, evidenceIds, vault) — Record a decision
restore(id, vault) — Recover a deleted engram
traverse(startId, maxHops, maxNodes, relTypes, vault) — Graph walk
explain(engramId, query, vault) — Score breakdown
setState(id, state, reason, vault) — Change workflow state
Valid states: planning, active, paused, blocked, completed, cancelled, archived
listDeleted(vault, limit) — List soft-deleted engrams
retryEnrich(id, vault) — Re-run enrichment
contradictions(vault) — Detected contradictions
guide(vault) — Human-readable vault guide
Query & List
stats(vault) — Vault statistics
listEngrams(vault, limit, offset) — Paginated engram list
getLinks(id, vault) — Get an engram's associations
listVaults() — List all vaults
session(vault, since, limit, offset) — Session activity log
Streaming & Health
subscribe(vault, pushOnWrite) — SSE subscription
health() — Health check
Error Handling
All errors throw exceptions extending MuninnDB\Exceptions\MuninnException:
| Exception | HTTP Status | When |
|---|---|---|
AuthException |
401 | Invalid or missing token |
NotFoundException |
404 | Engram / resource not found |
ValidationException |
400, 422 | Invalid request body |
ConflictException |
409 | Conflicting operation |
ServerException |
5xx | Server-side error (after retries) |
ConnectionException |
— | curl connection failure |
TimeoutException |
— | Request exceeded timeout |
Configuration
All configuration is done through the constructor — no config files, no environment variable magic:
License
MIT
All versions of client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package muninndb/client contains the following files
Loading the files please wait ...