承接 sidus/converter-bundle 相关项目开发

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

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

sidus/converter-bundle

最新稳定版本:0.2.6

Composer 安装命令:

composer require sidus/converter-bundle

包简介

Alternative to Symfony/Serializer to convert complex data types using Yaml configuration.

README 文档

README

Alternative to Symfony/Serializer to convert complex data types using Yaml configuration.

Event handling order (priority)

  1. CheckInputTypeSubscriber (10000)
    • Ensure the input type is supported
  2. BehaviorsHandlerSubscriber (1200)
    • Attach mapping configurations from behaviors
  3. PropertiesExtractorSubscriber (1000)
    • Extract properties from the input data based on the mapping configuration
  4. AutoMappingExtractorSubscriber (900)
    • Automatically extract remaining properties from the input if the auto_mapping option is enabled
  5. TransformerSubscriber (800)
    • Transform the extracted properties using the transformer configurations
  6. OutputCreatorSubscriber (400)
    • Create the output object, either by using the constructor and the available properties or by creating a new instance without the constructor if the hydrate_object option is enabled.
  7. HydratorSubscriber (200)
    • Hydrate the output object using the transformed properties if the hydrate_object option is enabled.
  8. PropertiesSetterSubscriber (0)
    • Set the properties on the output object by using the PropertyAccessor
  9. CheckRemainingPropertiesSubscriber (-10000)
    • Check if there are remaining properties in the input data that have not been processed

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-20