index.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Serializer
  2. ==========
  3. Introduction
  4. ------------
  5. This library allows you to (de-)serialize data of any complexity. Currently, it supports XML, JSON, and YAML.
  6. It also provides you with a rich tool-set to adapt the output to your specific needs.
  7. Built-in features include:
  8. - (De-)serialize data of any complexity; circular references are handled gracefully.
  9. - Supports many built-in PHP types (such as dates)
  10. - Integrates with Doctrine ORM, et. al.
  11. - Supports versioning, e.g. for APIs
  12. - Configurable via PHP, XML, YAML, or Doctrine Annotations
  13. Installation
  14. ------------
  15. This library can be easily installed via composer
  16. .. code-block :: bash
  17. composer require jms/serializer
  18. or just add it to your ``composer.json`` file directly.
  19. Usage
  20. -----
  21. For standalone projects usage of the provided builder is encouraged::
  22. $serializer = JMS\Serializer\SerializerBuilder::create()->build();
  23. $serializer->serialize($data, 'json');
  24. Documentation
  25. -------------
  26. .. toctree ::
  27. :hidden:
  28. configuration
  29. usage
  30. event_system
  31. handlers
  32. reference
  33. cookbook
  34. - :doc:`Configuration <configuration>`
  35. - :doc:`Usage <usage>`
  36. - :doc:`Events <event_system>`
  37. - :doc:`Handlers <handlers>`
  38. - Recipes
  39. * :doc:`/cookbook/exclusion_strategies`
  40. - Reference
  41. * :doc:`Annotations </reference/annotations>`
  42. * :doc:`XML Reference </reference/xml_reference>`
  43. * :doc:`YML Reference </reference/yml_reference>`
  44. License
  45. -------
  46. The code is released under the business-friendly `Apache2 license`_.
  47. Documentation is subject to the `Attribution-NonCommercial-NoDerivs 3.0 Unported
  48. license`_.
  49. .. _Apache2 license: http://www.apache.org/licenses/LICENSE-2.0.html
  50. .. _Attribution-NonCommercial-NoDerivs 3.0 Unported license: http://creativecommons.org/licenses/by-nc-nd/3.0/