An open API service indexing awesome lists of open source software.

https://github.com/gowork/symfony-json-request

Converts json request body to request array
https://github.com/gowork/symfony-json-request

json php request symfony

Last synced: about 1 year ago
JSON representation

Converts json request body to request array

Awesome Lists containing this project

README

          

# JSON Request Bundle

Converts json request body to request array.

**Starting from Symfony 6.3 there is native [$request->getPayload()](https://symfony.com/blog/new-in-symfony-6-3-request-payload) method that can be used instead of this package**

## Install

```shell
composer require gowork/symfony-json-request
```

## Setup bundle

```php
request->get('content');
}
```

```shell
curl 'controller/path' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-binary '{"content"s:"test","nick":"test"}'
```