Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

saxulum-legacy/saxulum-http-client-adapter-zend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saxulum-http-client-adapter-zend

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality

Features

  • Provides a http client interface adapter for zend

Requirements

  • PHP 5.3+
  • Zend Http ~2.3

Installation

Through Composer as saxulum/saxulum-http-client-adapter-zend.

Usage

use Saxulum\HttpClient\Zend\HttpClient;
use Saxulum\HttpClient\Request;

$httpClient = new HttpClient();
$response = $httpClient->request(new Request(
    '1.1',
    Request::METHOD_GET,
    'http://en.wikipedia.org',
    array(
        'Connection' => 'close',
    )
));

You can inject your own zend client instance while creating the http client instance.

use Zend\Http\Client;
use Saxulum\HttpClient\Zend\HttpClient;

$client = new Client;
$httpClient = new HttpClient($client);

About

A zend adapter for the saxulum http client interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages