FindSoftware

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

Status
Active
Maintainer
Romain Canon4
First release
20218

Rendering and deploy

Install with
composer5

Releases

Current major version
27
Last release
2026-11-127

Adoption

GitHub stars
1,5363
Packagist downloads
22,405,5489
Contributors
5310
Dependent repositories
2111
Dependent packages
4411

Why these figures do not compare

Sources

  1. 2026-11-17: links
    valinor-php.dev/latest/
  2. 2026-11-17: links
    valinor-php.dev/latest/getting-started/
  3. 2026-11-17: links, Written in, License, GitHub stars
    api.github.com/repos/CuyZ/Valinor
  4. 2026-11-17: Maintainer, License model
    raw.githubusercontent.com/CuyZ/Valinor/master/LICENSE.md
  5. 2026-11-17: Categories, Install with
    raw.githubusercontent.com/CuyZ/Valinor/master/README.md
  6. 2026-11-17: Runtime, Minimum runtime
    raw.githubusercontent.com/CuyZ/Valinor/2.7.0/composer.json
  7. 2026-11-17: Current major version, Last release
    github.com/CuyZ/Valinor/releases/tag/2.7.0
  8. 2026-11-17: First release
    github.com/CuyZ/Valinor/releases/tag/0.1.0
  9. 2026-11-17: Packagist downloads
    packagist.org/packages/cuyz/valinor.json
  10. 2026-11-17: Contributors
    api.github.com/repos/CuyZ/Valinor/contributors?per_page=1
  11. 2026-11-17: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/packagist.org/packages/cuyz%2Fvalinor
  12. 2026-11-17: Multilingual
    valinor-php.dev/latest/how-to/customize-error-messages/

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON