A thin PHP Library for perform HTTP Requests.

Installs: 146

Dependents: 1

Stars: 6

Watchers: 1

Forks: 1

Open Issues: 3

v1.1.5 2014-09-11 16:36 UTC


A thin PHP Library to perform HTTP requests for Web Services, available request methods are GET, POST, PUT and DELETE, can also send request headers, send GET and POST parameters, send data in RAW format and support for HTTP versions 1.0 and 1.1. This library is based on Zend_Http component of Zend Framework 1 and needs a CURL extension installed.


use Slice\Http\Client;

# Initializing Client
$client = new Client();

# Set method

# Set URI

# Set GET parameters

# Set POST parameters

# Set headers

# Set HTTP version

# Performing request
$response = $client->request();