{"id":20961734,"url":"https://github.com/heimrichhannot/contao-request-bundle","last_synced_at":"2025-10-05T07:36:36.652Z","repository":{"id":62515528,"uuid":"124374734","full_name":"heimrichhannot/contao-request-bundle","owner":"heimrichhannot","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-02T15:26:19.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-24T00:25:17.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heimrichhannot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-03-08T10:20:25.000Z","updated_at":"2021-10-13T09:02:25.000Z","dependencies_parsed_at":"2025-05-14T07:44:49.333Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/contao-request-bundle","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/heimrichhannot/contao-request-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-request-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-request-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-request-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-request-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-request-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-request-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277494124,"owners_count":25827750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-29T02:00:09.175Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:16:09.124Z","updated_at":"2025-10-05T07:36:36.635Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"\n![](https://img.shields.io/packagist/v/heimrichhannot/contao-request-bundle.svg)\n![](https://img.shields.io/packagist/l/heimrichhannot/contao-request-bundle.svg)\n![](https://img.shields.io/packagist/dt/heimrichhannot/contao-request-bundle.svg)\n[![](https://img.shields.io/travis/heimrichhannot/contao-request-bundle/master.svg)](https://travis-ci.org/heimrichhannot/contao-request-bundle/)\n[![](https://img.shields.io/coveralls/heimrichhannot/contao-request-bundle/master.svg)](https://coveralls.io/github/heimrichhannot/contao-request-bundle)\n\n\u003e This bundle is deprecated and not maintained activilty anymore!\n\n# Request Bundle\n\nContao uses it own `Input` class, that check the request for $_GET, $_POST and more parameters.\nThis is done directly on $_GET, $_POST Server Parameters and for Tests it is not possible to simulate the HTTP-Server.\nHere `HeimrichHannot\\Request` put on and provide the sumilation of your own HTTP-Server object with help of `symfony/http-foundation`.\n\n## Technical instruction\n\nUse the following alternatives for contao `Input` or `Environment` calls\n\nContao | Request\n---- | -----------\n`\\Input::get($strKey)` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003egetGet($strKey)`\n`\\Input::post($strKey)` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003egetPost($strKey)`\n`\\Input::postHtml($strKey)` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003egetPostHtml($strKey)`\n`\\Input::postRaw($strKey)` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003egetPostRaw($strKey)`\n`\\Input::setPost($strKey, $varValue)` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003esetPost($strKey, $varValue)`\n`\\Input::setGet($strKey, $varValue)` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003esetGet($strKey, $varValue)`\n`isset($_GET[$strKey])` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003ehasGet($strKey)`\n`isset($_POST[$strKey])` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003ehasPost($strKey)`\n`\\Environment::get('isAjaxRequest')` | `\\Contao\\System-\u003egetContainer()-\u003eget('huh.request')-\u003eisXmlHttpRequest()`\n\n\n## Insert tags\n\nFor convenience we provide insert tags for some request method parameters.\n\n**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=?')-\u003eexecute('{{request_get::auto_item}}')`**\n\n\nInsert tag | Description\n--- | --------- \n`{{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`)\n`{{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`)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-request-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-request-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-request-bundle/lists"}