PHPackages                             alks/http-extra-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. [HTTP &amp; Networking](/categories/http)
4. /
5. alks/http-extra-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

alks/http-extra-bundle
======================

Addons to the symfony framework including controller argument binds to the request body/query, content negotiation and more

v0.2.0(8y ago)039MITPHPPHP &gt;=5.6.0

Since May 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AlkisStamos/http-extra-bundle)[ Packagist](https://packagist.org/packages/alks/http-extra-bundle)[ RSS](/packages/alks-http-extra-bundle/feed)WikiDiscussions master Synced 2mo ago

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

HttpExtraBundle
===============

[](#httpextrabundle)

Adds the following annotations to the Symfony3 framework:

- **@RequestParam** : Matches any query parameter to an action argument.
- **@RequestBody** : Matches the request body (content) to an action argument.
- **@RequestData** : Matches any request data parameter ($request-&gt;request) to an action argument.
- **@Response** : Provide additional info (headers etc) for the response object.

The bundle also:

- automatically deserializes and validates the request body/data to an action argument
- generates a response when an action returns anything but a Response object
- resolves doctrine entities from a query parameter
- automatically denormalizes the request content to a class

which (if properly configured) leaves the controllers to work only with valid and structured request data. Useful when you like working with DTOs and you are not a big fan of forms.

[![Build Status](https://camo.githubusercontent.com/49d9df9b47e73527c1411b0cce7bd25e72c4f9b15ca47894b1744f47983d790d/68747470733a2f2f7472617669732d63692e6f72672f416c6b69735374616d6f732f687474702d65787472612d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AlkisStamos/http-extra-bundle)

Requirements
------------

[](#requirements)

- PHP 5.4 or higher
- Symfony 3.1 or higher

The bundle uses value resolvers which were introduced in Symfony 3.1

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

[](#installation)

1. Installing the bundle via packagist

```
$ composer require alks/http-extra-bundle

```

2.Enable the bundle in your symfony project

```
