Valinor
PHP library that maps raw input such as JSON or arrays into typed objects and validates it on the way.
Valinor is a PHP library that builds typed objects from raw input such as JSON or plain arrays, and validates that input while it does so. The README says the mapper handles native PHP types and the advanced types that PHPStan and Psalm support, such as shaped arrays and generics, and reports human-readable errors for values that do not fit. The error messages can be translated. A normalization mechanism turns objects back into a data format such as JSON or CSV while keeping their structure.
The documentation names a Symfony bundle and a Mezzio package as separate framework integrations. Its alternatives page lists other mapping packages, among them laravel-data.
Identity
Rendering and deploy
- Install with
- composer5
Releases
Adoption
Sources
- 2026-11-17: links
valinor-php.dev/latest/ - 2026-11-17: links
valinor-php.dev/latest/getting-started/ - 2026-11-17: links, Written in, License, GitHub stars
api.github.com/repos/CuyZ/Valinor - 2026-11-17: Maintainer, License model
raw.githubusercontent.com/CuyZ/Valinor/master/LICENSE.md - 2026-11-17: Categories, Install with
raw.githubusercontent.com/CuyZ/Valinor/master/README.md - 2026-11-17: Runtime, Minimum runtime
raw.githubusercontent.com/CuyZ/Valinor/2.7.0/composer.json - 2026-11-17: Current major version, Last release
github.com/CuyZ/Valinor/releases/tag/2.7.0 - 2026-11-17: First release
github.com/CuyZ/Valinor/releases/tag/0.1.0 - 2026-11-17: Packagist downloads
packagist.org/packages/cuyz/valinor.json - 2026-11-17: Contributors
api.github.com/repos/CuyZ/Valinor/contributors?per_page=1 - 2026-11-17: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/cuyz%2Fvalinor - 2026-11-17: Multilingual
valinor-php.dev/latest/how-to/customize-error-messages/