承接 indigophp/hydra 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

indigophp/hydra

Composer 安装命令:

composer require indigophp/hydra

包简介

Easily convert array to object and object to array

README 文档

README

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads

Easily convert array to object and object to array.

Install

Via Composer

$ composer require indigophp/hydra

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 created by @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 package

Testing

$ phpspec run

Contributing

Please see CONTRIBUTING for details.

Credits

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

License

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

统计信息

  • 总下载量: 100
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-27