ausus/persistence-memory

AUSUS — in-memory PersistenceDriver (L3). Reference conformance driver for tests and the vertical slice. RFC-002.

Maintainers

Package info

github.com/adonko3xBitters/persistence-memory

pkg:composer/ausus/persistence-memory

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.0 2026-06-27 17:55 UTC

This package is auto-updated.

Last update: 2026-06-29 03:18:58 UTC


README

AUSUS 2.0 — in-memory PersistenceDriver (L3). The reference conformance driver: a complete, dependency-free implementation of the kernel storage contract (transactions with rollback, tenant-scoped repositories). Intended for tests and the vertical slice, not production storage.

Installation

composer require ausus/persistence-memory:^2.0

Dependencies

  • PHP 8.3+
  • ausus/kernel

Public surface

  • Ausus\Persistence\Memory\MemoryDriver — implements Ausus\PersistenceDriver (beginTransaction, commit, rollback, context, generateIdentity).
  • Ausus\Persistence\Memory\MemoryRepository — implements Ausus\Repository (find, create, update, findAll).

Minimal example

<?php
use Ausus\Persistence\Memory\MemoryDriver;
use Ausus\Engine\Runtime\DefaultEntityEngine;

$driver  = new MemoryDriver();
$runtime = $engine->bind($repository->resolve('customer'), $driver); // driver injected

Documentation

See the canonical reference docs/v2/ and the Quick Start.