Download the PHP package rdx/http without Composer
On this page you can find all versions of the php package rdx/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor rdx
Package http
Short Description A simple HTTP wrapper around CURL, with request and response classes.
License MIT
Package http
Short Description A simple HTTP wrapper around CURL, with request and response classes.
License MIT
Please rate this library. Is it a good library?
Informations about the package http
HTTP
Super simple, very imcomplete, very small wrapper around CURL.
If you need decent cookie handling, use Guzzle etc.
Request
GET
use rdx\http\HTTP;
$request = HTTP::create('https://api.github.com/gists/public');
$response = $request->request();
POST
use rdx\http\HTTP;
HTTP::$_agent = 'Some custom user agent string 1.0';
$request = HTTP::create('https://api.github.com/gists/public', array(
'method' => 'POST',
'data' => array('foo' => 'bar'),
'headers' => array(
'Authorization: Basic abc',
),
'cookies' => array(
array('name', 'value'),
),
));
$response = $request->request();
Response
var_dump($response->code); // 200
var_dump($response->status); // OK
print_r($response->cookies_by_name);
All versions of http with dependencies
PHP Build Version
Package Version
No informations.
The package rdx/http contains the following files
Loading the files please wait ....