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-12-11 17:44:09 UTC


README

Build Status Opensource ByJG GitHub source GitHub license GitHub release

The Serializer library is a versatile tool that allows you to convert any object, array, or stdClass into JSON, XML, YAML, or an array. It also enables you to apply filters to properties during the conversion process. Additionally, you can parse attributes and apply transformations to property values on the fly.

The library also allows you to copy content from one object to another, even if their properties differ.

For more information, please check:

Install

composer require "byjg/serialize"

Test

./vendor/bin/phpunit

Dependencies

Open source ByJG