the-toster/hdrtr

There is no license information available for the latest version (0.0.6) of this package.

Hydrator with PHPDoc types support

Maintainers

Package info

github.com/the-toster/hdrtr

pkg:composer/the-toster/hdrtr

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.6 2026-03-09 13:46 UTC

This package is auto-updated.

Last update: 2026-03-09 13:47:08 UTC


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));