Valinor

github.com/CuyZ/Valinor Developer Tools Open-source projectOpen source

Valinor maps input data into strongly typed PHP structures without external dependencies.

github.com/CuyZ/Valinor
Valinor homepage screenshot

About Valinor

Valinor is a dependency-free PHP library that maps raw inputs such as JSON and plain arrays into strongly typed objects. It constructs and validates the data during mapping and reports incorrect values with precise, human-readable error messages.

It handles native PHP types as well as advanced types used by PHPStan and Psalm, including shaped arrays, generics, and integer ranges. It also provides normalization to transform data into formats such as JSON and CSV while preserving the original structure. It is installed with composer require cuyz/valinor and distributed under the MIT license.

Key features

  • Maps JSON and plain arrays into strongly typed PHP objects
  • Validates input values with precise human-readable error messages
  • Supports shaped arrays, generics, and integer ranges
  • Transforms data into JSON and CSV while preserving structure
  • Installs via Composer without external dependencies
  • Maps nested objects such as lists of custom classes
Best for: PHP developers who need to map and validate raw input into typed objects.
Good for
  • Has no external dependencies
  • Provides precise, human-readable messages for incorrect values
  • Supports native PHP types and advanced PHPStan and Psalm types

Valinor at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Good for
Developers
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Valinor alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

Valinor FAQ

How do I install Valinor?
Run `composer require cuyz/valinor`.
What kinds of input can Valinor map?
Raw inputs such as JSON and plain arrays into objects.
What type definitions can the mapper handle?
Native PHP types and advanced PHPStan and Psalm types such as shaped arrays, generics, and integer ranges.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing