Storh

File-first records for PHP: JSONC documents, append-only segmented logs, and log-backed queues with UUIDv7 ids.

JSONC Document Store

One JSONC file per record, UUIDv7 ids, UUID-tail sharding, atomic replacement, and streaming field filters.

Segmented Log

Append-only NDJSON segments, sparse indexes, cursor and time-range reads, crash recovery, and compaction.

Log Queue

Jobs move through pending, processing, and done states using compact append-only queue events.

UUIDv7 Records

Sortable, time-addressable ids for stable cursors, bounded scans, and shard-friendly storage paths.

Atomic Writes

Temporary-file writes and atomic renames keep records whole, with startup cleanup for abandoned temp files.

Torn-Write Recovery

Segment reads validate length and checksum fields; recovery truncates partial trailing lines.

File-First

No database server, no framework adapter, no Composer runtime packages; callers pass a directory.

JSONC Native

Storage files accept comments and trailing commas while writing stable pretty JSONC objects.

Ready to store records?

Install the Composer package and create durable file-first records in PHP.

Read the Docs