capirussa/http-php

This package is abandoned and no longer maintained. The author suggests using the guzzlehttp/guzzle package instead.
There is no license information available for the latest version (0.1.2) of this package.

A PHP library for communicating with external services over HTTP.

0.1.2 2014-12-07 13:48 UTC

README

Build Status Coverage Status

This simple PHP library simplifies communication with an external service over HTTP or HTTPS.

Usage

use Capirussa\Http;

try {
    $request = new Http\Request();
    $request->setRequestUrl('http://www.example.com');
    $request->setRequestMethod(Http\Request::METHOD_GET);
    $response = $request->send();
} catch (\Exception $exception) {
    // something went wrong, fix it and try again!
}

If you find any bugs in this library, please raise an issue on Github.

Happy coding!