jms / serializer
Library for (de-)serializing data of any complexity; supports XML, and JSON.
Fund package maintenance!
goetas
Installs: 109 420 137
Dependents: 992
Suggesters: 76
Security: 0
Stars: 2 323
Watchers: 41
Forks: 586
Open Issues: 162
Requires
- php: ^7.4 || ^8.0
- doctrine/instantiator: ^1.3.1 || ^2.0
- doctrine/lexer: ^2.0 || ^3.0
- jms/metadata: ^2.6
- phpstan/phpdoc-parser: ^1.20
Requires (Dev)
- ext-pdo_sqlite: *
- doctrine/annotations: ^1.14 || ^2.0
- doctrine/coding-standard: ^12.0
- doctrine/orm: ^2.14 || ^3.0
- doctrine/persistence: ^2.5.2 || ^3.0
- doctrine/phpcr-odm: ^1.5.2 || ^2.0
- jackalope/jackalope-doctrine-dbal: ^1.3
- ocramius/proxy-manager: ^1.0 || ^2.0
- phpbench/phpbench: ^1.0
- phpstan/phpstan: ^1.10.57
- phpunit/phpunit: ^9.0 || ^10.0 || ^11.0
- psr/container: ^1.0 || ^2.0
- rector/rector: ^1.0.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0
- symfony/expression-language: ^5.4 || ^6.0 || ^7.0
- symfony/filesystem: ^5.4 || ^6.0 || ^7.0
- symfony/form: ^5.4 || ^6.0 || ^7.0
- symfony/translation: ^5.4 || ^6.0 || ^7.0
- symfony/uid: ^5.4 || ^6.0 || ^7.0
- symfony/validator: ^5.4 || ^6.0 || ^7.0
- symfony/yaml: ^5.4 || ^6.0 || ^7.0
- twig/twig: ^1.34 || ^2.4 || ^3.0
Suggests
- doctrine/collections: Required if you like to use doctrine collection types as ArrayCollection.
- symfony/cache: Required if you like to use cache functionality.
- symfony/uid: Required if you'd like to serialize UID objects.
- symfony/yaml: Required if you'd like to use the YAML metadata format.
- dev-master / 3.x-dev
- 3.31.1
- 3.31.0
- 3.30.0
- 3.29.1
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.2
- 3.18.1
- 3.18.0
- 3.17.1
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.14.0-rc2
- 3.14.0-rc1
- 3.13.0
- 3.12.3
- 3.12.2
- 3.12.1
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-RC1
- 2.0.0-beta1
- 1.x-dev
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.1
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.1
- 1.8.0
- 1.7.1
- 1.7.0
- 1.7.0-RC2
- 1.7.0-RC1
- 1.6.2
- 1.6.1
- 1.6.0
- 1.6.0-RC1
- 1.5.0
- 1.5.0-RC1
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- dev-rever-null-metadata
- dev-float-decimals
- dev-nested-groups
- dev-use-new-metadata
- dev-groups-name
- dev-twig
- dev-positional-attributes
- dev-kunicmarko20-deserialize_null
- dev-nullable-type-def
- dev-emulate-v1-groups
- dev-extract-prop-exclusion
- dev-InheritanceSameProprietyName
- dev-generated-hydrator
- dev-type-def-value-object
- dev-working-compiled-navigator
This package is auto-updated.
Last update: 2024-11-12 09:47:16 UTC
README
UKRAINE NEEDS YOUR HELP NOW!
On 24 February 2022, Russian President Vladimir Putin ordered an invasion of Ukraine by Russian Armed Forces.
Your support is urgently needed.
- Donate to the volunteers. Here is the volunteer fund helping the Ukrainian army to provide all the necessary equipment: https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi or https://savelife.in.ua/en/donate/
- Triple-check social media sources. Russian disinformation is attempting to coverup and distort the reality in Ukraine.
- Help Ukrainian refugees who are fleeing Russian attacks and shellings: https://www.globalcitizen.org/en/content/ways-to-help-ukraine-conflict/
- Put pressure on your political representatives to provide help to Ukraine.
- Believe in the Ukrainian people, they will not surrender, they don't have another Ukraine.
THANK YOU!
jms/serializer
Introduction
This library allows you to (de-)serialize data of any complexity. Currently, it supports XML and JSON.
It also provides you with a rich tool-set to adapt the output to your specific needs.
Built-in features include:
- (De-)serialize data of any complexity; circular references and complex exclusion strategies are handled gracefully.
- Supports many built-in PHP types (such as dates, intervals)
- Integrates with Doctrine ORM, et. al.
- Supports versioning, e.g. for APIs
- Configurable via XML, YAML, or Annotations
Documentation
Learn more about the serializer in its documentation.
Notes
You are browsing the code for the 3.x version, if you are interested in the 1.x or 2.x version, check the 1.x and 2.x branches.
The version 3.x
is the supported version (master
branch).
The 1.x
and 2.x
versions are not supported anymore.
For the 1.x
and 2.x
branches there will be no additional feature releases.
Security issues will be fixed till the 1st January 2020 and
only critical bugs might receive fixes until the 1st September 2019.
Instructions on how to upgrade to 3.x are available in the UPGRADING document.
Professional Support
For eventual paid support please write an email to goetas@gmail.com.