PHPackages                             jms/serializer-service-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jms/serializer-service-provider

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jms/serializer-service-provider
===============================

Silex Service Provider for the Serializer Bundle

0.1.1(13y ago)117.9k11[6 issues](https://github.com/pink-tie/JMSSerializerServiceProvider/issues)[1 PRs](https://github.com/pink-tie/JMSSerializerServiceProvider/pulls)2MITPHPPHP &gt;=5.3.3

Since Aug 26Pushed 12y ago2 watchersCompare

[ Source](https://github.com/pink-tie/JMSSerializerServiceProvider)[ Packagist](https://packagist.org/packages/jms/serializer-service-provider)[ Docs](http://jmsyst.com/bundles/JMSSerializerBundle)[ RSS](/packages/jms-serializer-service-provider/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (4)Versions (4)Used By (2)

The `SerializerServiceProvider` provides a service for serializing objects. This service provider uses the [`JMS\SerializerBundle`](http://jmsyst.com/bundles/JMSSerializerBundle) for serializing.

[![Build Status](https://camo.githubusercontent.com/a984f30b7f5c6d88d4472bb471cfdfc81e4718b7fcd2de6ef8f79222dd36a477/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f70696e6b2d7469652f4a4d5353657269616c697a65725365727669636550726f76696465722e706e67)](http://travis-ci.org/pink-tie/JMSSerializerServiceProvider)

Parameters
----------

[](#parameters)

- `serializer.src_directory`: The directory where the `JMS\SerializerBundle` source is located.
- `serializer.cache.directory`: The directory to use for storing the metadata cache.
- `serializer.naming_strategy.seperator` (optional): The separator string used when normalizing properties.
- `serializer.naming_strategy.lower_case` (optional): Boolean flag indicating if the properties should be normalized as lower case strings.
- `serializer.date_time_handler.format` (optional): The format used to serialize and deserialize `DateTime` objects. Refer to the [PHP documentation for supported Date/Time formats](http://php.net/manual/en/datetime.formats.php).
- `serializer.date_time_handler.default_timezone` (optional): The timezone to use when serializing and deserializing `DateTime` objects. Refer to the [PHP documentation for a list of supported timezones](http://php.net/manual/en/timezones.php).
- `serializer.disable_external_entities` (optional): Boolean flag indicating if the serializer should disable external entities for the XML serialization format.

Services
--------

[](#services)

- `serializer`: An instance of `JMS\SerializerBundle\Serializer\Serializer`.

Registering
-----------

[](#registering)

```
