air-php / http
There is no license information available for the latest version (v0.6) of this package.
A HTTP library.
v0.6
2016-02-09 09:53 UTC
Requires
- php: >=5.4.0
- phpunit/phpunit: >=4.1
This package is not auto-updated.
Last update: 2026-03-10 10:57:21 UTC
README
The HTTP library includes classes for abstracting the Hypertext Transfer Protocol.
Installation
Installation via Composer is recommended.
"require": {
"air-php/http": "dev-master"
}
Request
The Request class encapsulates a HTTP request. You can create a Request like so:
<?php
use Air\HTTP\Request\Request;
new Request('http://www.test.com/test/', 'GET');
Once you have a Request object, it offers convenient methods for accessing request data, such as getUriPath() and getQueryParameters().