Download the PHP package qandidate/symfony-json-request-transformer without Composer
On this page you can find all versions of the php package qandidate/symfony-json-request-transformer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download qandidate/symfony-json-request-transformer
More information about qandidate/symfony-json-request-transformer
Files in qandidate/symfony-json-request-transformer
Package symfony-json-request-transformer
Short Description A Symfony event listener for decoding JSON encoded request content
License MIT
Informations about the package symfony-json-request-transformer
symfony-json-request-transformer
🚨 This repository is archived as it has served its purpose. Symfony has built-in support for this: https://symfony.com/doc/current/components/http_foundation.html#accessing-request-data
A Symfony event listener for decoding JSON encoded request content.
About
Read the blog post about this repository at http://labs.qandidate.com/blog/2014/08/13/handling-angularjs-post-requests-in-symfony/
Install
Install qandidate/symfony-json-request-transformer through composer.
Register the event listener as a service:
Example
A request with JSON content like:
will be decoded automatically so can access the foo
property like:
License
MIT, see LICENSE.