Download the PHP package radionovel/php-hydrator without Composer
On this page you can find all versions of the php package radionovel/php-hydrator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download radionovel/php-hydrator
More information about radionovel/php-hydrator
Files in radionovel/php-hydrator
Download radionovel/php-hydrator
More information about radionovel/php-hydrator
Files in radionovel/php-hydrator
Vendor radionovel
Package php-hydrator
Short Description Simple object hydrator
License BSD-3-Clause
Package php-hydrator
Short Description Simple object hydrator
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package php-hydrator
PHP Object Hydrator
The library allows to hydrate objects from an array and extract raw objects's values to an array.
Installation
Install with composer:
Usage samples
Hydrating an object from an associative array:
$post = $this->hydrator->hydrate(Post::class, [
'id' => $id,
'date' => $date,
'title' => $title,
])
Extracting of object values to an array by list of properies:
$data = $this->hydrator->extract($post, ['id', 'date', 'title'])
For example if we have Post
entity:
then we can use the hydrator in any repository class:
All versions of php-hydrator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package radionovel/php-hydrator contains the following files
Loading the files please wait ....