Search by

celema / sire

ernstla

A PHP validation library

Package info

github.com/celemas/sire

Homepage

pkg:composer/celema/sire

Statistics

Installs: 259

Dependents: 1

Suggesters: 0

Stars: 0

0.5.0 2026-07-18 22:56 UTC

This package is auto-updated.

Last update: 2026-10-04 16:55:35 UTC


README

ci code coverage type coverage psalm level Software License

A PHP validation library with a shape-first API and a compact rule DSL.

Note: This is a preview feature currently under active development.

Sire defines required fields by default. Use field-level optional(), default(), empty(), and nullable() when a field can be absent, filled, empty, or explicitly null. Use shape-level prepare() for payload migrations, field-level prepare() for value normalization, and finalize() for final field output transforms.

Installation

composer require celema/sire

Documentation

Use the docs in docs/ for complete setup and usage guidance.

Mutation testing

Mutation testing with Infection is not part of composer ci, but the CI workflow runs it after the coverage step and enforces the minimum mutation score from infection.json5.dist. Pushes only mutate the changed lines; a weekly scheduled run covers the whole codebase. Run it locally with:

composer mutation

Reports are written to .infection/.

License

This project is licensed under the MIT license.