the-toster / hdrtr
There is no license information available for the latest version (0.0.6) of this package.
Hydrator with PHPDoc types support
0.0.6
2026-03-09 13:46 UTC
Requires
- php: ^8.3
- phpstan/phpdoc-parser: ^2.3
- typhoon/type: ^0.7
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.4.4
README
На основе typhoon-php/types и phpstan/phpdoc-parser.
composer require the-toster/hdrtr
<?php declare(strict_types=1); use Hdrtr\Hydrator; use Typhoon\Type\objectT; use Typhoon\Type\stringT; use Hdrtr\Tests\Collection; $collection = (new Hydrator()) ->hydrate(['items' => ['a', 'b', 'c']], objectT(Collection::class, stringT));