cerebralfart/hydrate

Load JSON in PHP classes

Maintainers

Package info

github.com/CerebralFart/hydrate

pkg:composer/cerebralfart/hydrate

Statistics

Installs: 1 567

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.3 2024-02-04 16:28 UTC

This package is auto-updated.

Last update: 2026-03-04 20:59:47 UTC


README

Load data into classes

Getting started

Getting started is easy, just install the package and start hydrating data:

composer require cerebralfart/hydrate
$data = [...];
$structure = Hydrate::load($data, Model::class);

Roadmap

0.1.0

  • Load nested objects
  • Load array properties