celema / sire
A PHP validation library
Requires
- php: ^8.5
- symfony/html-sanitizer: ^8.0
Requires (Dev)
- celema/dev: ^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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.