Download the PHP package abivia/hydration without Composer
On this page you can find all versions of the php package abivia/hydration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abivia/hydration
More information about abivia/hydration
Files in abivia/hydration
Package hydration
Short Description Support for creating complex nested class structures from JSON/YAML objects.
License MIT
Homepage https://github.com/abivia/hydration
Informations about the package hydration
Abivia\Hydration
Hydration is designed to make JSON and YAML configuration files more user intuitive while providing robust validation and smart creation of data structures via a fluent, easily configured interface.
Overview
Hydration:
- Populates complex data structures from user editable JSON or YAML sources.
- Allows your application to validate inputs, including ensuring that required properties are present.
Encoding (dehydration?) facilities can transform your application data structures into objects for encoding as JSON/YAML, automatically removing unwanted properties, rearranging properties into a user-friendly order, removing properties with default values and simplifying redundant constructs to improve usability.
If your application:
- has configurations with several levels of nesting,
- needs to validate user editable data in configuration files,
- is spending a lot of effort converting the stdClass objects created by
json_decode()
oryaml_parse()
to your application's class structures, or - is just using
stdClass
objects for configuration
then Hydration is here to help.
Installation
composer require abivia/hydration
Hydration uses the YAML Symphony parser and will suggest it at install.
Documentation
Documentation is available on the Hydration Site.
Contributing and Code of Conduct
Please see CONTRIBUTING.md.
All versions of hydration with dependencies
ext-json Version *