A thin PHP Library for perform HTTP Requests.

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

This package is auto-updated.

Last update: 2024-06-11 12:55:51 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();