Registry / serialization / cuyz-valinor

cuyz-valinor

JSON →
library2.4.0phppackagistunverified

Dependency free PHP library that helps to map any input into a strongly-typed structure.

composer require cuyz/valinor
INSTALL
IMPORT
SIG · CUYZ-VALINOR
C
cuyz-valinor
serializationphpv2.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TreeMapper
use CuyZ\Valinor\Mapper\TreeMapper;

Map an array to a strongly-typed class instance.

use CuyZ\Valinor\Mapper\TreeMapper; $mapper = new TreeMapper(); $result = $mapper->map(['name' => 'John'], SomeClass::class);
Debug
Known issues
breakingVersion 2.x requires PHP 8.1+; uses enums and readonly properties.
fix
Upgrade to PHP 8.1+ or use version 1.x for PHP 8.0.
affects: >=2.0.0
Upgrade
Version history
2.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
cuyz-valinor — pip install cuyz-valinor · libregistry