Skip to content
@tiny-blocks

Tiny Blocks

Implementations for Domain Driven Design building blocks and utility classes in PHP.

Tiny Blocks

Tiny Blocks is a set of small, focused, framework-agnostic PHP libraries. Each one solves a single problem and can be adopted on its own, without pulling in the rest.

The building blocks cover the parts most applications rewrite from scratch: collections, time, HTTP primitives and middleware, object mapping, structured logging, identifiers, encoding, arbitrary precision numbers, and value object contracts. Some go further and implement a known pattern end to end: the tactical building blocks of Domain Driven Design, and the Transactional Outbox.

The documentation of every library, how the libraries depend on each other, and search across all of them live at tiny-blocks.github.io.

To contribute, follow the contribution guidelines. Everyone who participates is governed by the code of conduct.

Pinned Loading

  1. tiny-blocks tiny-blocks Public

    The shared Claude Code configuration of the Tiny Blocks libraries: rules, hooks and skills.

    Python 6 1

  2. collection collection Public

    Models a type-safe, fluent collection API for PHP with eager and lazy pipelines over arrays, iterators, and generators.

    PHP 2

  3. building-blocks building-blocks Public

    Implements tactical DDD building blocks for PHP: entities, aggregate roots, domain events, snapshots, and upcasters.

    PHP 2

  4. outbox outbox Public

    Implements the Transactional Outbox pattern. Persists domain events atomically with aggregate state changes through a customizable table schema, reflection-based payload serialization, and built-in…

    PHP 2

  5. mapper mapper Public

    Maps PHP objects to and from arrays, JSON, and iterables through reflection and pluggable strategies.

    PHP 3

  6. docker-container docker-container Public

    Manages Docker containers programmatically for PHP, aimed at integration tests and disposable infrastructure.

    PHP 4

Repositories

Showing 10 of 23 repositories

Top languages

Loading…

Most used topics

Loading…