gofintech / serializer
PHP object serializer when you need a stand-alone component
v1.5
2023-02-03 12:42 UTC
Requires
- php: >=7.0
- doctrine/annotations: ^1.6
- doctrine/cache: ^1.8
- phpdocumentor/reflection-docblock: ^5.0 || ^4.0
- symfony/property-access: ^4.0 || ^3.4
- symfony/property-info: ^4.0 || ^3.4
- symfony/serializer: ^4.0 || ^3.4
- symfony/validator: ^4.0 || ^3.4
- symfony/yaml: ^4.0 || ^3.4
Requires (Dev)
- phpunit/phpunit: ^9.6
Suggests
- yogarine/doctrine-annotation-autoload: Registers validation annotations at run time
README
Symfony has a full-featured object serializer component. However, unless you get it pre-configured, you will probably have a hard time making it work the way you need it.
This small package wraps up Symfony components needed for the "usual case" of object serialization/deserialization. It makes sure you get all the common dependencies and configures type discovery through reflection and phpDoc.
This serializer is deliberately made to "just work". In particular, it lacks any configuration. If you need something else, just use the original components and set them up the way you need.