Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony auto decode json request

# https://github.com/symfony-bundles/json-request-bundle
# add to composer.json

composer req symfony-bundles/json-request-bundle

# then use in your controller

public function indexAction(Request $request)
{
    $name = $request->get('name');
}
 
PREVIOUS NEXT
Tagged: #symfony #auto #decode #json #request
ADD COMMENT
Topic
Name
8+4 =