|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / vendor / jms / serializer / doc / |
Filename | /home/a/home/dev2.destoffenstraat.com/vendor/jms/serializer/doc/index.rst |
Size | 1.8 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 22-Feb-2020 21:59 |
Last accessed | 23-Aug-2025 21:33 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
Serializer
==========
Introduction
------------
This library allows you to (de-)serialize data of any complexity. Currently, it supports XML, JSON, and YAML.
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 are handled gracefully.
- Supports many built-in PHP types (such as dates)
- Integrates with Doctrine ORM, et. al.
- Supports versioning, e.g. for APIs
- Configurable via PHP, XML, YAML, or Doctrine Annotations
Installation
------------
This library can be easily installed via composer
.. code-block :: bash
composer require jms/serializer
or just add it to your ``composer.json`` file directly.
Usage
-----
For standalone projects usage of the provided builder is encouraged::
$serializer = JMS\Serializer\SerializerBuilder::create()->build();
$jsonContent = $serializer->serialize($data, 'json');
echo $jsonContent; // or return it in a Response
Documentation
-------------
.. toctree ::
:hidden:
configuration
usage
event_system
handlers
reference
cookbook
- :doc:`Configuration <configuration>`
- :doc:`Usage <usage>`
- :doc:`Events <event_system>`
- :doc:`Handlers <handlers>`
- Recipes
* :doc:`/cookbook/exclusion_strategies`
- Reference
* :doc:`Annotations </reference/annotations>`
* :doc:`XML Reference </reference/xml_reference>`
* :doc:`YML Reference </reference/yml_reference>`
License
-------
The code is released under the business-friendly `MIT license`_.
Documentation is subject to the `Attribution-NonCommercial-NoDerivs 3.0 Unported
license`_.
.. _MIT license: https://opensource.org/licenses/MIT
.. _Attribution-NonCommercial-NoDerivs 3.0 Unported license: http://creativecommons.org/licenses/by-nc-nd/3.0/
==========
Introduction
------------
This library allows you to (de-)serialize data of any complexity. Currently, it supports XML, JSON, and YAML.
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 are handled gracefully.
- Supports many built-in PHP types (such as dates)
- Integrates with Doctrine ORM, et. al.
- Supports versioning, e.g. for APIs
- Configurable via PHP, XML, YAML, or Doctrine Annotations
Installation
------------
This library can be easily installed via composer
.. code-block :: bash
composer require jms/serializer
or just add it to your ``composer.json`` file directly.
Usage
-----
For standalone projects usage of the provided builder is encouraged::
$serializer = JMS\Serializer\SerializerBuilder::create()->build();
$jsonContent = $serializer->serialize($data, 'json');
echo $jsonContent; // or return it in a Response
Documentation
-------------
.. toctree ::
:hidden:
configuration
usage
event_system
handlers
reference
cookbook
- :doc:`Configuration <configuration>`
- :doc:`Usage <usage>`
- :doc:`Events <event_system>`
- :doc:`Handlers <handlers>`
- Recipes
* :doc:`/cookbook/exclusion_strategies`
- Reference
* :doc:`Annotations </reference/annotations>`
* :doc:`XML Reference </reference/xml_reference>`
* :doc:`YML Reference </reference/yml_reference>`
License
-------
The code is released under the business-friendly `MIT license`_.
Documentation is subject to the `Attribution-NonCommercial-NoDerivs 3.0 Unported
license`_.
.. _MIT license: https://opensource.org/licenses/MIT
.. _Attribution-NonCommercial-NoDerivs 3.0 Unported license: http://creativecommons.org/licenses/by-nc-nd/3.0/