Download the PHP package aidan-casey/http-parser without Composer
On this page you can find all versions of the php package aidan-casey/http-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aidan-casey/http-parser
More information about aidan-casey/http-parser
Files in aidan-casey/http-parser
Download aidan-casey/http-parser
More information about aidan-casey/http-parser
Files in aidan-casey/http-parser
Vendor aidan-casey
Package http-parser
Short Description Various tools for parsing HTTP requests into API usable queries.
License MIT
Package http-parser
Short Description Various tools for parsing HTTP requests into API usable queries.
License MIT
Please rate this library. Is it a good library?
Informations about the package http-parser
This package provides various classes that help convert a PSR representation of an HTTP request into other forms useful for an API server.
For example, the HttpToZend
class will convert HTTP parameters into a database query that can be passed to your model for serving up information or carrying out actions.
Install
Coming soon! For now, feel free to clone this repository.
HttpToZend
Supported GET Parameters / request methods
Parameter | Request Method | Value |
---|---|---|
fields | SELECT | String |
filter | DELETE, SELECT, PATCH, PUT | JSON |
orderby | SELECT | JSON |
limit | SELECT | Integer |
offset | SELECT | Integer |
Fields
Filter
Supported Filters
Name | Key | Value |
---|---|---|
Greater Than | $gt | Integer |
Greater Than or Equal To | $gte | Integer |
In | $in | Array |
Not In | $nin | Array |
Like | $like | String |
Not Like | $nlike | String |
Less Than | $lt | Integer |
Less Than or Equal To | $lte | Integer |
Not | $not | String |
Order By
Limit
Offset
Example
This example uses Slim Framework and converts a GET request into a database select query.
All versions of http-parser with dependencies
PHP Build Version
Package Version
The package aidan-casey/http-parser contains the following files
Loading the files please wait ....