Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentchalnot/converterbundle
Alternative to Symfony/Serializer to convert complex data types using Yaml configuration.
https://github.com/vincentchalnot/converterbundle
Last synced: 4 days ago
JSON representation
Alternative to Symfony/Serializer to convert complex data types using Yaml configuration.
- Host: GitHub
- URL: https://github.com/vincentchalnot/converterbundle
- Owner: VincentChalnot
- License: mit
- Created: 2023-04-20T14:05:44.000Z (over 1 year ago)
- Default Branch: v1.0-dev
- Last Pushed: 2024-09-10T13:46:53.000Z (2 months ago)
- Last Synced: 2024-11-11T16:19:01.012Z (6 days ago)
- Language: PHP
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConverterBundle
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