byjg/serializer

Serialize any object into array and format it JSON or XML

Fund package maintenance!
byjg

5.0.0 2024-10-27 15:46 UTC

This package is auto-updated.

Last update: 2024-10-27 15:47:53 UTC


README

Build Status Opensource ByJG GitHub source GitHub license GitHub release

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

Dependencies

Open source ByJG