2017 © Pedro PelĂĄez
 

library hydra

Easily convert array to object and object to array

image

indigophp/hydra

Easily convert array to object and object to array

  • Saturday, March 28, 2015
  • by mark.sagikazar
  • Repository
  • 2 Watchers
  • 1 Stars
  • 90 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Indigo Hydra

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads, (*1)

Easily convert array to object and object to array., (*2)

Install

Via Composer, (*3)

``` bash $ composer require indigophp/hydra, (*4)



## Usage ### Currently supported hydrators Hydrators can be found under `Indigo\Hydra\Hydrator` namespace. - Generated: Inspired by **GeneratedHydrator**. Contains some custom logic, but generation logic is heavily based on the original code - GeneratedHydrator: Uses [GeneratedHydrator](https://github.com/Ocramius/GeneratedHydrator) created by **[@Ocramius](https://github.com/Ocramius)** - HydratableAware: It is a decorator which checks if the object implements `Indigo\Hydra\Hydratable` interface and falls back to the hydrator if not - ObjectProperty: Maps data to, reads from public properties - Reflection: Uses reflection to access all object properties (non-static ones) - Zend: Allows to use hydrators from [zendframework/zend-stdlib](https://github.com/zendframework/Component_ZendStdlib) package ## Testing ``` bash $ phpspec run

Contributing

Please see CONTRIBUTING for details., (*5)

Credits

This library is heavily influenced by Zend Stdlib, Doctrine Hydration and GeneratedHydrator package created by @Ocramius., (*6)

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

28/03 2015

dev-master

9999999-dev https://indigophp.com

Easily convert array to object and object to array

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

extraction hydration