https://github.com/byjg/php-serializer
Serialize any object into array and bind any data structure to an object/array; Can (de)serialize into JSON or XML.
https://github.com/byjg/php-serializer
binding json php serializer xml
Last synced: 3 months ago
JSON representation
Serialize any object into array and bind any data structure to an object/array; Can (de)serialize into JSON or XML.
- Host: GitHub
- URL: https://github.com/byjg/php-serializer
- Owner: byjg
- License: mit
- Created: 2016-05-11T02:57:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-02T13:21:15.000Z (3 months ago)
- Last Synced: 2025-04-17T04:19:23.597Z (3 months ago)
- Topics: binding, json, php, serializer, xml
- Language: PHP
- Homepage:
- Size: 151 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Serializer
[](https://github.com/byjg/serializer/actions/workflows/phpunit.yml)
[](http://opensource.byjg.com)
[](https://github.com/byjg/serializer/)
[](https://opensource.byjg.com/opensource/licensing.html)
[](https://github.com/byjg/serializer/releases/)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:
- [Serialize](docs/serialize.md)
- [ObjectCopy](docs/objectcopy.md)
- [ObjectCopyInterface](docs/objectcopyinterface.md)## Install
```
composer require "byjg/serialize"
```## Test
```
./vendor/bin/phpunit
```## Dependencies
```mermaid
flowchart TD
byjg/serializer --> ext-json
byjg/serializer --> symfony/yaml
byjg/serializer --> ext-simplexml
```----
[Open source ByJG](http://opensource.byjg.com)