Download the PHP package sekjun9878/request-parser without Composer
On this page you can find all versions of the php package sekjun9878/request-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sekjun9878/request-parser
More information about sekjun9878/request-parser
Files in sekjun9878/request-parser
Package request-parser
Short Description A library to parse raw HTTP requests for PHP CLI web servers and more.
License MIT
Homepage https://github.com/sekjun9878/request-parser
Informations about the package request-parser
RequestParser
RequestParser is a PHP library for parsing raw HTTP requests.
This library is not a complete to-specification implementation of the HTTP/1.1 protocol (because doing that would be extremely difficult and unnecessary), but implements most of the spec and should be good enough for the purposes of a specific-purpose HTTP server such as an API server for a PHP CLI application.
If in doubt, try it and see if it works for your purpose! But don't come knocking on my door if you accidentally manage to blow up your back yard... somehow.
Features
- Easy to use
- Unit tested
- Comes in both Composer and PHAR versions
- Supports Transfer-Encoding: Chunked
- Batteries included!
- We provide examples for you to copy paste and,
- We return a default Request object for you to use instantly
Examples
Here is a quick example to demonstrate how easy it is to instantly get started:
You can find more examples in the examples/
folder. The library is simple enough to use
straight away without a documentation, but one is coming soon hopefully.
Installation
Composer
request-parser is PSR-4 compliant and can be installed using Composer. Simply add sekjun9878/request-parser to your composer.json file. Composer is the sane alternative to PEAR. It is excellent for managing dependencies in larger projects.
or
PHAR
A PHP Archive (or .phar) file is available for downloading. Simply download the .phar, drop it into your project, and include it like you would any other php file. This method is ideal for smaller projects, one off scripts, and quick API hacking.
Downloads
For installation, see the installation notes above.
Download latest stable request-parser.phar here. Download latest master request-parser.phar here.
Additional links:
API to return the URL to download the latest master build from: https://www.michael.yoo.id.au/projects/request-parser/api/latest-build-url.php