PHPackages                             json-mapper/symfony-bundle - 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. json-mapper/symfony-bundle

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

json-mapper/symfony-bundle
==========================

The JsonMapper bundle for Symfony

2.2.1(3y ago)039.6k1MITPHPPHP ^7.2 || ^8.0CI passing

Since Apr 30Pushed 1y ago2 watchersCompare

[ Source](https://github.com/JsonMapper/SymfonyBundle)[ Packagist](https://packagist.org/packages/json-mapper/symfony-bundle)[ RSS](/packages/json-mapper-symfony-bundle/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

  ![JsonMapper logo](https://camo.githubusercontent.com/92c07bc67e17a28dff56bb1bb24368d6e7deac4d451ea04f9142af7a1954bf89/68747470733a2f2f6a736f6e6d61707065722e6e65742f696d616765732f6a736f6e6d61707065722e706e67)---

**This is a Symfony bundle for using JsonMapper in you Symfony application.**

JsonMapper is a PHP library that allows you to map a JSON response to your PHP objects that are either annotated using doc blocks or use typed properties. For more information see the project website:

[![GitHub](https://camo.githubusercontent.com/8e69884a6bf5c791dc64c25e4a8e3ae6fc470e2677a5356029d3d870d2b910b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a736f6e4d61707065722f53796d666f6e7942756e646c65)](https://camo.githubusercontent.com/8e69884a6bf5c791dc64c25e4a8e3ae6fc470e2677a5356029d3d870d2b910b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a736f6e4d61707065722f53796d666f6e7942756e646c65)[![Packagist Version](https://camo.githubusercontent.com/778acad887913253c0e0e61033d10a1e63dc541bea47e515170a36959b090c4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a736f6e2d6d61707065722f73796d666f6e792d62756e646c65)](https://camo.githubusercontent.com/778acad887913253c0e0e61033d10a1e63dc541bea47e515170a36959b090c4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a736f6e2d6d61707065722f73796d666f6e792d62756e646c65)[![PHP from Packagist](https://camo.githubusercontent.com/4140e5014e324a5587e8fe5f43341d81273110626f6e1262ee0d17618709b75e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a736f6e2d6d61707065722f73796d666f6e792d62756e646c65)](https://camo.githubusercontent.com/4140e5014e324a5587e8fe5f43341d81273110626f6e1262ee0d17618709b75e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a736f6e2d6d61707065722f73796d666f6e792d62756e646c65)[![Build](https://github.com/JsonMapper/SymfonyBundle/workflows/Build/badge.svg?branch=master)](https://github.com/JsonMapper/SymfonyBundle/workflows/Build/badge.svg?branch=master)[![Coverage Status](https://camo.githubusercontent.com/bf23bac05a77872b9d7539fb9382dfa94ff2e43c76683ed83c60ffdf67d3a2b5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a736f6e4d61707065722f53796d666f6e7942756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/JsonMapper/SymfonyBundle?branch=master)

Why use JsonMapper
==================

[](#why-use-jsonmapper)

Continuously mapping your JSON responses to your own objects becomes tedious and is error prone. Not mentioning the tests that needs to be written for said mapping.

JsonMapper has been build with the most common usages in mind. In order to allow for those edge cases which are not supported by default, it can easily be extended as its core has been designed using middleware.

JsonMapper supports the following features

- Case conversion
- Debugging
- DocBlock annotations
- Final callback
- Namespace resolving
- PHP 7.4 Types properties

Installing JsonMapper Symfony bundle
====================================

[](#installing-jsonmapper-symfony-bundle)

The installation of JsonMapper Symfony bundle can easily be done with [Composer](https://getcomposer.org)

```
$ composer require json-mapper/symfony-bundle
```

The example shown above assumes that `composer` is on your `$PATH`.

Contributing
============

[](#contributing)

Please refer to [CONTRIBUTING.md](https://github.com/JsonMapper/SymfonyBundle/blob/master/CONTRIBUTING.md) for information on how to contribute to JsonMapper Symfony bundle.

List of Contributors
--------------------

[](#list-of-contributors)

Thanks to everyone who has contributed to JsonMapper Symfony bundle! You can find a detailed list of contributors of JsonMapper on [GitHub](https://github.com/JsonMapper/SymfonyBundle/graphs/contributors).

License
=======

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/JsonMapper/SymfonyBundle/blob/master/LICENSE) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 96% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~178 days

Recently: every ~234 days

Total

7

Last Release

1141d ago

Major Versions

1.1.1 → 2.0.02021-01-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/631515718006cc76dcc92e7672b8d2b265888cb6b5268212081cab15de114e92?d=identicon)[danny.vandersluijs](/maintainers/danny.vandersluijs)

---

Top Contributors

[![DannyvdSluijs](https://avatars.githubusercontent.com/u/618940?v=4)](https://github.com/DannyvdSluijs "DannyvdSluijs (24 commits)")[![jorrit](https://avatars.githubusercontent.com/u/521449?v=4)](https://github.com/jorrit "jorrit (1 commits)")

---

Tags

jsonmiddlewarelaravelmapperjsonmapper

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/json-mapper-symfony-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/json-mapper-symfony-bundle/health.svg)](https://phpackages.com/packages/json-mapper-symfony-bundle)
```

###  Alternatives

[json-mapper/json-mapper

Map JSON structures to PHP classes

2181.1M22](/packages/json-mapper-json-mapper)[json-mapper/laravel-package

The JsonMapper package for Laravel

25170.4k3](/packages/json-mapper-laravel-package)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
