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

ActiveSymfony-bundle[Parsing &amp; Serialization](/categories/parsing)

symfony-bundles/json-request-bundle
===================================

Symfony JsonRequest Bundle

4.2.0(1y ago)501.6M↓17.8%20[1 PRs](https://github.com/php-bundles/json-request-bundle/pulls)6MITPHPPHP &gt;=7.4 || &gt;=8.0 || &gt;=8.1

Since Dec 15Pushed 1y ago4 watchersCompare

[ Source](https://github.com/php-bundles/json-request-bundle)[ Packagist](https://packagist.org/packages/symfony-bundles/json-request-bundle)[ Docs](https://github.com/symfony-bundles/json-request-bundle)[ RSS](/packages/symfony-bundles-json-request-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (25)Used By (6)

Symfony JsonRequest Bundle
==========================

[](#symfony-jsonrequest-bundle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6a30fdf312612a7a2a6f5f3965f6683fb42f3b81e30ca888ce0338c0aea51203/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73796d666f6e792d62756e646c65732f6a736f6e2d726571756573742d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/symfony-bundles/json-request-bundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ec3e2a15b4edf685ada7422f574d27f9c0878d0ec8d946035f7660cb7f971554/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73796d666f6e792d62756e646c65732f6a736f6e2d726571756573742d62756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/symfony-bundles/json-request-bundle/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/de07f3866934739888509eefd6789422a77ac2471001aad2b8b11444cd33786b/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e792d62756e646c65732f6a736f6e2d726571756573742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/symfony-bundles/json-request-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/6db77c601b0d6de0e8b4aac33c168d0921f982a0278eba9091f347c7566c9270/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e792d62756e646c65732f6a736f6e2d726571756573742d62756e646c652f762f737461626c65)](https://packagist.org/packages/symfony-bundles/json-request-bundle)[![License](https://camo.githubusercontent.com/5a6d21302e9748d8164d417000cb04f7a5651e001a2b9b904d3e54ab2f2adbc6/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e792d62756e646c65732f6a736f6e2d726571756573742d62756e646c652f6c6963656e7365)](https://github.com/symfony-bundles/json-request-bundle/blob/master/LICENSE)

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

[](#installation)

- Require the bundle with composer:

```
composer req symfony-bundles/json-request-bundle
```

What is JsonRequest Bundle?
---------------------------

[](#what-is-jsonrequest-bundle)

This bundle will help you to work with json requests as standard requests without using «crutches». If previously for fetching of data from the request you did like this: `$data = json_decode($request->getContent())`, it is now in this already there is no need to.

For example when sending json-request from AngularJS, Vue.js or etc. Early:

```
public function indexAction(Request $request)
{
    $data = json_decode($request->getContent(), true);

    // uses request data
    $name = isset($data['name']) ? $data['name'] : null;
}
```

Now you can work with json-request as with standard request:

```
public function indexAction(Request $request)
{
    $name = $request->get('name');
}
```

Per default request content will be transformed only for requests with content type `json` or `jsonld`.

but you can stil configure it with

```
# serices.yaml

json_request:
    content_types:
        - json
        - jsonld
        - someouthertype
```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance40

Moderate activity, may be stable

Popularity54

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 68.4% 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 ~127 days

Recently: every ~269 days

Total

24

Last Release

504d ago

Major Versions

v1.2.1 → v2.0.02018-03-24

v2.0.1 → v3.0.02019-11-28

v3.1.1 → 4.0.02020-12-24

PHP version history (8 changes)v1.0.0PHP &gt;=5.6

v1.1.0PHP &gt;=5.5.9

v2.0.0PHP ^7.1.3

v3.0.0PHP ^7.3

4.0.0PHP ^7.4 || ^8.0

4.0.3PHP &gt;=7.4

4.0.5PHP &gt;=7.4 || ^8.0

4.2.0PHP &gt;=7.4 || &gt;=8.0 || &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6610c7c63bc376406e4f75c07c5a0a4134fb72251d64e03ffeefe12a95f4ef1?d=identicon)[khaperets](/maintainers/khaperets)

---

Top Contributors

[![khaperets](https://avatars.githubusercontent.com/u/2507262?v=4)](https://github.com/khaperets "khaperets (54 commits)")[![dmytro-khaperets](https://avatars.githubusercontent.com/u/171946311?v=4)](https://github.com/dmytro-khaperets "dmytro-khaperets (11 commits)")[![jdreesen](https://avatars.githubusercontent.com/u/424602?v=4)](https://github.com/jdreesen "jdreesen (4 commits)")[![mehdibo](https://avatars.githubusercontent.com/u/5004111?v=4)](https://github.com/mehdibo "mehdibo (2 commits)")[![fd6130](https://avatars.githubusercontent.com/u/11419744?v=4)](https://github.com/fd6130 "fd6130 (1 commits)")[![frandzdy](https://avatars.githubusercontent.com/u/15669629?v=4)](https://github.com/frandzdy "frandzdy (1 commits)")[![gassan](https://avatars.githubusercontent.com/u/2382015?v=4)](https://github.com/gassan "gassan (1 commits)")[![beesofts](https://avatars.githubusercontent.com/u/1955007?v=4)](https://github.com/beesofts "beesofts (1 commits)")[![xorik](https://avatars.githubusercontent.com/u/347044?v=4)](https://github.com/xorik "xorik (1 commits)")[![BlueM](https://avatars.githubusercontent.com/u/1493457?v=4)](https://github.com/BlueM "BlueM (1 commits)")[![damazus](https://avatars.githubusercontent.com/u/13179253?v=4)](https://github.com/damazus "damazus (1 commits)")[![dannyvankooten](https://avatars.githubusercontent.com/u/885856?v=4)](https://github.com/dannyvankooten "dannyvankooten (1 commits)")

---

Tags

jsonsymfonybundleangular

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)[wa72/jsonrpc-bundle

JSON-RPC server for Symfony: exposes services registered in the service container as JSON-RPC webservices

3164.1k](/packages/wa72-jsonrpc-bundle)[mcfedr/json-form

A couple of helper files for handling json with symfony forms

1387.5k1](/packages/mcfedr-json-form)[eprofos/user-agent-analyzer

A powerful Symfony bundle for user-agent analysis. It provides accurate detection of operating systems (Windows, MacOS, Linux, iOS, Android...), browsers (Chrome, Firefox, Safari...), and device types (Desktop, Mobile, Tablet, TV...). Supports specific version detection and includes advanced handling of special cases like WebViews and compatibility modes. Features comprehensive logging and detailed analysis results.

182.3k](/packages/eprofos-user-agent-analyzer)

PHPackages © 2026

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