PHPackages                             toflar/http-request-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. toflar/http-request-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

toflar/http-request-parser
==========================

Parses the string representation of an HTTP request into a PHP superglobal like array

10135PHP

Since Jun 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Toflar/http-request-parser)[ Packagist](https://packagist.org/packages/toflar/http-request-parser)[ RSS](/packages/toflar-http-request-parser/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

HTTP Request Parser
===================

[](#http-request-parser)

[![](https://camo.githubusercontent.com/c2fbb3daba3c65dfa9c1682d473e04bfc25ba7a6c8cac49e122d0ad45d57c933/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f546f666c61722f687474702d726571756573742d7061727365722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Toflar/http-request-parser/)[![](https://camo.githubusercontent.com/5fa928eca7ab1a43835740f8ad69bee7c26c9829ad686521bdede41b1efffd40/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f546f666c61722f687474702d726571756573742d7061727365722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/Toflar/http-request-parser)

**THIS IS WORK IN PROGRESS WITHOUT ANY RELEASE**

This tiny library parses an HTTP request from its raw string representation to PHP superglobal like arrays. Typical PHP libraries such as the Symfony HttpFoundation provide ways to represent the current request as an object by using the PHP globals like so:

```
