2017 © Pedro Peláez
 

library http

A thin PHP Library for perform HTTP Requests.

image

slice/http

A thin PHP Library for perform HTTP Requests.

  • Thursday, September 11, 2014
  • by devsdmf
  • Repository
  • 1 Watchers
  • 7 Stars
  • 323 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Slice\Http

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., (*1)

Example

use Slice\Http\Client;

# Initializing Client
$client = new Client();

# Set method
$client->setMethod($client::POST);

# Set URI
$client->setUri('http://localhost/ws/');

# Set GET parameters
$client->setParameterGet('fooGet','barGet');

# Set POST parameters
$client->setParameterPost(array(
    'var1'=>'value1',
    'var2'=>'value2',
));

# Set headers
$client->setHeaders('foo','bar');

# Set HTTP version
$client->setHTTPVersion($client::HTTP_0);

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

The Versions

11/09 2014

dev-master

9999999-dev http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

  • php >=5.3.0

 

by Lucas Mendes de Freitas

curl http request slice

11/09 2014

v1.1.5

1.1.5.0 http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

  • php >=5.3.0

 

by Lucas Mendes de Freitas

curl http request slice

10/06 2014

v1.1.4

1.1.4.0 http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

  • php >=5.3.0

 

by Lucas Mendes de Freitas

curl http request slice

17/12 2013

v1.1.3

1.1.3.0 http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

  • php >=5.3.0

 

by Lucas Mendes de Freitas

curl http request slice

16/12 2013

v1.1.2

1.1.2.0 http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

  • php >=5.3.0

 

by Lucas Mendes de Freitas

curl http request slice

04/12 2013

v1.1.0

1.1.0.0 http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

 

by Lucas Mendes de Freitas

curl http request slice

29/11 2013

v1.0.0

1.0.0.0 http://slice.devsdmf.net

A thin PHP Library for perform HTTP Requests.

  Sources   Download

GNU

The Requires

 

by Lucas Mendes de Freitas

curl http request slice