PHPackages                             toin0u/http-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. toin0u/http-adapter

ActiveLibrary[HTTP &amp; Networking](/categories/http)

toin0u/http-adapter
===================

HttpAdapter PHP 5.3+ library

1.0.3(13y ago)7117.4k↓64.3%1[1 issues](https://github.com/toin0u/HttpAdapter/issues)2MITPHPPHP &gt;=5.3.0

Since May 26Pushed 12y ago1 watchersCompare

[ Source](https://github.com/toin0u/HttpAdapter)[ Packagist](https://packagist.org/packages/toin0u/http-adapter)[ Docs](https://github.com/toin0u/HttpAdapter)[ RSS](/packages/toin0u-http-adapter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (5)Used By (2)

HttpAdapter
===========

[](#httpadapter)

This PHP 5.3+ library provides you simple HTTP adapters.

[![Build Status](https://camo.githubusercontent.com/03e159609d4abbb5f21f3b4d73708d6b46057176ef18b7a8857af8a8a5244de5/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746f696e30752f48747470416461707465722e706e67)](http://travis-ci.org/toin0u/HttpAdapter)[![Coverage Status](https://camo.githubusercontent.com/bfcc280070963e23abfa9764fc9bc237b3a3a08aba4f873d3669093f69af6f24/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746f696e30752f48747470416461707465722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/toin0u/HttpAdapter)[![Latest Stable Version](https://camo.githubusercontent.com/93d5136f98c8ac8c8b73180f73440af91ad372bb29850c3b92f92a3ab5c2c4f3/68747470733a2f2f706f7365722e707567782e6f72672f746f696e30752f687474702d616461707465722f762f737461626c652e706e67)](https://packagist.org/packages/toin0u/http-adapter)[![Total Downloads](https://camo.githubusercontent.com/7687f1d200e082bc548570907d7aca1eed782f70407d63ab77bb4933173360e7/68747470733a2f2f706f7365722e707567782e6f72672f746f696e30752f687474702d616461707465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/toin0u/http-adapter)[![SensioLabsInsight](https://camo.githubusercontent.com/4c0538230867fa385f475cceb50a3b6ce109e350f912c59ffbe7ff68c7d141f4/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33616163613236322d653731642d343235362d613431652d6265353966376438643837342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/3aaca262-e71d-4256-a41e-be59f7d8d874)

Installation
------------

[](#installation)

This library can be found on [Packagist](https://packagist.org/packages/toin0u/http-adapter). The recommended way to install this is through [composer](http://getcomposer.org).

Edit `compose.json` and add:

```
{
    "require": {
        "toin0u/http-adapter": "~1.0"
    }
}
```

And install dependecies:

```
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
```

Available adapters
------------------

[](#available-adapters)

- `CurlHttpAdapter` to use [cURL](http://php.net/manual/book.curl.php).
- `BuzzHttpAdapter` to use [Buzz](https://github.com/kriswallsmith/Buzz), a lightweight PHP 5.3 library for issuing HTTP requests.
- `GuzzleHttpAdapter` to use [Guzzle](https://github.com/guzzle/guzzle), PHP 5.3+ HTTP client and framework for building RESTful web service clients.
- `ZendHttpAdapter` to use [Zend Http Client](http://framework.zend.com/manual/2.0/en/modules/zend.http.client.html).
- `SocketHttpAdapter` to use a [socket](http://www.php.net/manual/function.fsockopen.php).

Usage
-----

[](#usage)

```
