byjg / serializer
Serialize any object into array and format it JSON or XML
Fund package maintenance!
byjg
Installs: 113 867
Dependents: 4
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=8.1 <8.4
- ext-json: *
- ext-simplexml: *
- symfony/yaml: > 4
Requires (Dev)
- phpunit/phpunit: ^9.6
- vimeo/psalm: ^5.9
Suggests
- ext-curl: *
README
The Serializer is a library is a versatile tool that allows you convert any object, array or stdClass to JSON, XML, YAML, and Array, and apply some filter to the properties. During the conversion you can parse attributes and apply some transformation to the property values on the fly.
Also allow you to copy contents from an object to another, even if they have different properties.
For more information, please check:
Install
composer require "byjg/serialize"
Test
./vendor/bin/phpunit