Search by

waffle-commons / serializer

LesliePetrimaux

Compiled, reflection-free DTO serialization and Accept-header content negotiation for the Waffle framework.

Package info

github.com/waffle-commons/serializer

pkg:composer/waffle-commons/serializer

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 3

dev-main 2026-09-30 08:05 UTC

This package is auto-updated.

Last update: 2026-10-31 16:36:55 UTC


README

Discord PHP Version Require PHP CI codecov Latest Stable Version Latest Unstable Version Total Downloads Packagist License

Waffle Serializer Component

Release: unreleased ย |ย  CHANGELOG.md Status: In development for 0.1.0-beta7 โ€” roadmap [API-02] (RFC-016). Normalizers are compiled per DTO at build time; data/'s Hydrator stays DB-only.

Compiled, reflection-free DTO serialization and Accept-header content negotiation for the Waffle framework.

๐Ÿ“ฆ Installation

composer require waffle-commons/serializer

๐Ÿงญ Architectural boundary (mago guard)

Waffle\Commons\Serializer depends only on waffle-commons/contracts (plus waffle-commons/utils for shared primitives) and the PSR interfaces โ€” never on a sibling component's concrete classes. Every interface it implements lands in waffle-commons/contracts first.

๐Ÿงต Worker safety

Services are resident in FrankenPHP worker mode: no mutable state may survive a request. Anything that holds per-request state implements ResettableInterface directly; composer igor must report 0 KO.

๐Ÿงช Testing

composer mago    # formatter, linter, analyzer, guard โ€” clean means zero output
composer tests   # PHPUnit 12.5, line coverage โ‰ฅ 95 %
composer igor    # worker-safety audit

๐Ÿ“š Documentation

Full documentation tree: waffle-commons/documentation

๐Ÿ“„ License

MIT โ€” see LICENSE.md.