PHPackages                             hexium-agency/symfony-serializer-for-laravel - 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. hexium-agency/symfony-serializer-for-laravel

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

hexium-agency/symfony-serializer-for-laravel
============================================

Laravel package for the symfony/serializer component

v0.0.6(1y ago)1359↓100%[4 PRs](https://github.com/hexium-agency/symfony-serializer-for-laravel/pulls)MITPHPPHP ^8.3CI passing

Since Feb 20Pushed 1w agoCompare

[ Source](https://github.com/hexium-agency/symfony-serializer-for-laravel)[ Packagist](https://packagist.org/packages/hexium-agency/symfony-serializer-for-laravel)[ Docs](https://github.com/hexium-agency/laravel-sf-serializer)[ GitHub Sponsors]()[ RSS](/packages/hexium-agency-symfony-serializer-for-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (19)Versions (11)Used By (0)

Laravel package for the symfony/serializer component
====================================================

[](#laravel-package-for-the-symfonyserializer-component)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c8117a4a2b9876727e154e1b88f270d59362b598e7aae5002499373bc7b6f7dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68657869756d2d6167656e63792f73796d666f6e792d73657269616c697a65722d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hexium-agency/symfony-serializer-for-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c07fef8df24c2c5a301d745a281bcdbe03c51a21bca1cc1096f497946f2476eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68657869756d2d6167656e63792f73796d666f6e792d73657269616c697a65722d666f722d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/hexium-agency/symfony-serializer-for-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/819f30b33e13057c1dfc02516f7d323052ab35ab04279bbf8971b4f458f78a8d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68657869756d2d6167656e63792f73796d666f6e792d73657269616c697a65722d666f722d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/hexium-agency/symfony-serializer-for-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/05666364fba6f05333eefd0e6cbaa20174025888e87187433b45878570d54318/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68657869756d2d6167656e63792f73796d666f6e792d73657269616c697a65722d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hexium-agency/symfony-serializer-for-laravel)

The [symfony/serializer](https://github.com/symfony/serializer) component is a great tool to serialize and deserialize objects. This package provides a bridge between Laravel and the symfony/serializer component. Then it should be very easy to use with DI in your application code, as well as adding some normalizers and encoders.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require hexium-agency/symfony-serializer-for-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="symfony-serializer-for-laravel-config"
```

This is the contents of the published config file:

```
