PHPackages                             heimrichhannot/contao-request - 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. heimrichhannot/contao-request

Abandoned → [heimrichhannot/contao-request-bundle](/?search=heimrichhannot%2Fcontao-request-bundle)Contao-module[HTTP &amp; Networking](/categories/http)

heimrichhannot/contao-request
=============================

A request class, that brings the symfony/http-foundation to contao.

1.5.0(4y ago)019.2k9LGPL-3.0-or-laterPHPPHP ~5.4 || ~7.0 || ^8.0

Since Aug 4Pushed 4y ago4 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-request)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-request)[ Docs](https://github.com/heimrichhannot/contao-request)[ RSS](/packages/heimrichhannot-contao-request/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (16)Used By (9)

Request
=======

[](#request)

[![](https://camo.githubusercontent.com/c0e39865f6e46b5daf72ab15578fdbe25adb4ab6f526bb0ecb5eda5849ac3ecf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742e737667)](https://camo.githubusercontent.com/c0e39865f6e46b5daf72ab15578fdbe25adb4ab6f526bb0ecb5eda5849ac3ecf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742e737667)[![](https://camo.githubusercontent.com/b96aad5f7d04adcfa3666e46075ef4a23c7ca7f75d818402e006946a395068cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742e737667)](https://camo.githubusercontent.com/b96aad5f7d04adcfa3666e46075ef4a23c7ca7f75d818402e006946a395068cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742e737667)[![](https://camo.githubusercontent.com/67e7390fae012ed5c64d1a1b982af927fc3a6c6c6ab23851b9635d57d06d14df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742e737667)](https://camo.githubusercontent.com/67e7390fae012ed5c64d1a1b982af927fc3a6c6c6ab23851b9635d57d06d14df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742e737667)[![](https://camo.githubusercontent.com/c8599a6a8c1513a83cbf925946e5f30fec91752a433753235d87901ae9603249/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742f6d61737465722e737667)](https://travis-ci.org/heimrichhannot/contao-request/)[![](https://camo.githubusercontent.com/c1b15473192579abe6db3c0421f2c781ca05a1907f405deccab7d09befc2fe53/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6865696d7269636868616e6e6f742f636f6e74616f2d726571756573742f6d61737465722e737667)](https://coveralls.io/github/heimrichhannot/contao-request)

Contao uses it own `Input` class, that check the request for $\_GET, $\_POST and more parameters. This is done directly on $\_GET, $\_POST Server Parameters and for Tests it is not possible to simulate the HTTP-Server. Here `HeimrichHannot\Request` put on and provide the sumilation of your own HTTP-Server object with help of `symfony/http-foundation`.

Technical instruction
---------------------

[](#technical-instruction)

Use the following alternatives for contao `Input` or `Environment` calls

ContaoRequest`\Input::get($strKey)``\HeimrichHannot\Request\Request::getGet($strKey)``\Input::post($strKey)``\HeimrichHannot\Request\Request::getPost($strKey)``\Input::postHtml($strKey)``\HeimrichHannot\Request\Request::getPostHtml($strKey)``\Input::postRaw($strKey)``\HeimrichHannot\Request\Request::getPostRaw($strKey)``\Input::setPost($strKey, $varValue)``\HeimrichHannot\Request\Request::setPost($strKey, $varValue)``\Input::setGet($strKey, $varValue)``\HeimrichHannot\Request\Request::setGet($strKey, $varValue)``isset($_GET[$strKey])``\HeimrichHannot\Request\Request::hasGet($strKey)``isset($_POST[$strKey])``\HeimrichHannot\Request\Request::hasPost($strKey)``\Environment::get('isAjaxRequest')``\HeimrichHannot\Request\Request::getInstance()->isXmlHttpRequest()`Insert tags
-----------

[](#insert-tags)

For convenience we provide insert tags for some request method parameters.

\*\*CAUTION: If you use the insert tags in SQL-Query Context, be sure that you escape the insert tag values by using e.g. `prepare('field=?'')->execute('{{request_get::auto_item}}'')` \*\*

Insert tagDescription`{{request_get::*}}`This tag will be replaced with the XSS protected value of the query parameter (replace \* with the name of the query parameter, e.g. `auto_item`)`{{request_post::*}}`This tag will be replaced with the XSS protected value of the post parameter (replace \* with the name of the post parameter, e.g. `FORM_SUBMIT`)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

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

Every ~142 days

Recently: every ~359 days

Total

15

Last Release

1586d ago

PHP version history (2 changes)1.1.0PHP ~5.4 || ~7.0

1.4.0PHP ~5.4 || ~7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![Defcon0](https://avatars.githubusercontent.com/u/1485098?v=4)](https://github.com/Defcon0 "Defcon0 (1 commits)")[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (1 commits)")

---

Tags

requestsymfonycontao

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-request/health.svg)

```
[![Health](https://phpackages.com/badges/heimrichhannot-contao-request/health.svg)](https://phpackages.com/packages/heimrichhannot-contao-request)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[fruitcake/php-cors

Cross-origin resource sharing library for the Symfony HttpFoundation

314242.1M35](/packages/fruitcake-php-cors)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)

PHPackages © 2026

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