PHPackages                             nw/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. [API Development](/categories/api)
4. /
5. nw/json-request-bundle

ActiveSymfony-bundle[API Development](/categories/api)

nw/json-request-bundle
======================

Symfony JsonRequest Bundle

v1.0(5y ago)07MITPHPPHP ^7.3

Since Dec 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nowiko/JsonRequestBundle)[ Packagist](https://packagist.org/packages/nw/json-request-bundle)[ Docs](https://github.com/nowiko/JsonRequestBundle)[ RSS](/packages/nw-json-request-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/c92701ed74da0e7dfbf6d9ae0fe526bd7386812b4f8d003e4bee9c36e9baac51/68747470733a2f2f7472617669732d63692e6f72672f6e6f77696b6f2f4a736f6e5265717565737442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nowiko/JsonRequestBundle) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/bb63902e86749ef8cbb2a3ef311a8b12060e40191e5541e40c4030edda8cf07d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f77696b6f2f4a736f6e5265717565737442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nowiko/JsonRequestBundle/?branch=master)

JsonRequest Bundle
==================

[](#jsonrequest-bundle)

This bundle is a copy (with some minor changes) of [JsonRequest Bundle](https://github.com/symfony-bundles/json-request-bundle) which, for some reasons, was deleted by authors.

It eases work with JSON requests and treats them as standard requests without using «crutches».

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

[](#installation)

1. Require the bundle with composer:

```
composer require nw/json-request-bundle
```

2. Register the bundle in the application: In `app/AppKernel.php` prior to Symfony version `4.0`:

```
public function registerBundles()
{
    $bundles = [
        // ... ,
        new NW\JsonRequestBundle\NWJsonRequestBundle()
    ];

    // ...
    return $bundles;
}
```

In `config/bundles.php` when Symfony version is `4.0` and higher

```
return [
    //... other bundles
    NW\JsonRequestBundle\NWJsonRequestBundle::class => ['all' => true]
];
```

Usage
-----

[](#usage)

Previously to handle JSON-request, you were forced to do something similar to:

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

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

With this bundle you can work with JSON-request as with standard request:

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88cc1da610249ec60eef2930c6680cc98b66ebdec6068ef02e5cb7555ee7fa1b?d=identicon)[NovikovViktor](/maintainers/NovikovViktor)

---

Top Contributors

[![nowiko](https://avatars.githubusercontent.com/u/8058373?v=4)](https://github.com/nowiko "nowiko (2 commits)")

---

Tags

json-requestsjsonrequest-bundlesymfonyrequestjsonapisymfonybundle

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

42867.3k](/packages/harmbandstra-swagger-ui-bundle)[artyuum/request-dto-mapper-bundle

This bundle provides an easy way to automatically map the incoming request data to a DTO and optionally validate it.

515.8k](/packages/artyuum-request-dto-mapper-bundle)[stfalcon-studio/api-bundle

Base classes and helper services to build API application via Symfony.

1032.1k](/packages/stfalcon-studio-api-bundle)[ufo-tech/json-rpc-sdk-bundle

The Symfony bundle for simple usage Json-RPC api with dynamic SDK

172.5k](/packages/ufo-tech-json-rpc-sdk-bundle)

PHPackages © 2026

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