Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-24T21:26:04.000Z (5 months ago)
- Last Synced: 2024-10-03T06:22:14.115Z (4 months ago)
- Topics: binding, json, php, serializer, xml
- Language: PHP
- Homepage:
- Size: 164 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Serializer
[![Build Status](https://github.com/byjg/serializer/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/serializer/actions/workflows/phpunit.yml)
[![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com)
[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/serializer/)
[![GitHub license](https://img.shields.io/github/license/byjg/serializer.svg)](https://opensource.byjg.com/opensource/licensing.html)
[![GitHub release](https://img.shields.io/github/release/byjg/serializer.svg)](https://github.com/byjg/serializer/releases/)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:
- [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)