Packages from tiny-blocks

  • PHP

    tiny-blocks/building-blocks

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

  • PHP

    tiny-blocks/collection

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

  • PHP

    tiny-blocks/country

    Provides an ISO-3166 country value object for PHP, with Alpha-2, Alpha-3, and IANA timezone resolution.

  • PHP

    tiny-blocks/currency

    Models ISO-4217 currencies as a PHP enum, with per-currency fraction digit resolution.

  • PHP

    tiny-blocks/docker-container

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

  • PHP

    tiny-blocks/encoder

    Encoder and decoder for arbitrary data.

  • PHP

    tiny-blocks/environment-variable

    Provides a type-safe environment variable reader for PHP, with strict integer and boolean conversion.

  • PHP

    tiny-blocks/http

    Implements PSR-7 and PSR-15 HTTP primitives for PHP, with a fluent response builder, cookies, and cache control.The package is designed to be used in any PHP application, and can be used as a standalone library or as part of a larger framework.

  • PHP

    tiny-blocks/immutable-object

    Provides immutable behavior for objects.

  • PHP

    tiny-blocks/ksuid

    K-Sortable Unique Identifier.

  • PHP

    tiny-blocks/logger

    Emits PSR-3 structured logs for PHP, with correlation tracking and configurable sensitive data redaction.

  • PHP

    tiny-blocks/mapper

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

  • PHP

    tiny-blocks/math

    Value Objects for handling arbitrary precision numbers.

  • PHP

    tiny-blocks/time

    Models time as immutable value objects for PHP: instants, durations, periods, timezones, and time-of-day, all UTC-normalized.

  • PHP

    tiny-blocks/value-object

    Defines the default behavior contract for PHP value objects with structural equality.