air-php / http
A HTTP library.
Installs: 3 903
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=5.4.0
- phpunit/phpunit: >=4.1
This package is not auto-updated.
Last update: 2024-12-31 05:04:12 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()
.