![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/vendor/jms/serializer/doc/ |
Serializer ========== .. image:: logo-small.png 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 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 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 :: :maxdepth: 2 configuration usage event_system handlers reference cookbook 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/