dentelis/hydrator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dentelis/hydrator

Composer 安装命令:

composer require dentelis/hydrator

包简介

Extremely fast object and array php hydrator with strict type matching, array typings, enums, and union types

README 文档

README

Extremely fast php object and array hydrator with strict type matching, array typing, enums and type unions.

Converts simple data (obtained from json_decode or elsewhere) into objects/arrays of objects with strict typing.

Pros

  • really fast (add proofs!)
  • support typed arrays
  • support nested objects/arrays
  • support enums (both baked & unbaked)
  • support union object type in object properties and arrays (union of scalar types is unsupported)
  • uses constructor as well as overrides values

ToDO

  • add examples
  • add readme
  • add speed comparison
  • review exceptions
  • add map support
  • full union type support
  • add extract method
  • add native classes support (eg datetime etc)
  • add extensions support

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-21