PHPackages                             bee4/httpclient - 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. bee4/httpclient

Abandoned → [bee4/transport](/?search=bee4%2Ftransport)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

bee4/httpclient
===============

A simple chainable transport client.

v2.0.0(9y ago)15197[4 issues](https://github.com/bee4/httpclient/issues)[1 PRs](https://github.com/bee4/httpclient/pulls)Apache-2.0PHPPHP &gt;=5.6.0

Since Mar 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bee4/httpclient)[ Packagist](https://packagist.org/packages/bee4/httpclient)[ RSS](/packages/bee4-httpclient/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (6)Versions (22)Used By (0)

bee4/transport
==============

[](#bee4transport)

[![Build Status](https://camo.githubusercontent.com/0e19d60c9fd68453cd3d826596fd385982b3ac28579f197b3804d216107b1d2d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626565342f7472616e73706f72742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bee4/transport)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/70b719b70998b0155d54faa995165f0a394b7bca700076ec49051b67c3856f70/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626565342f7472616e73706f72742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bee4/transport/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/704e5f814aa29d17eeaf8bc2e223157c7c8f4c4af25b2b582e7e5d5cf260fbb6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f626565342f7472616e73706f72742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bee4/transport/)[![SensiolabInsight](https://camo.githubusercontent.com/de4b82c5bf8780e79b9b4b0a8571a2117fb8e9bcb22575dc77300af5a9f2fd44/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f61386630353937392d633932642d343135312d613231302d3931336130643637393264382e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/a8f05979-c92d-4151-a210-913a0d6792d8)

[![License](https://camo.githubusercontent.com/a15fe1e2484bec0da62f15aaeb6111d065fbf4717a5c135e0947100810914352/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626565342f7472616e73706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bee4/transport)

This library is a transport client that can be used to handle HTTP, FTP, FTPS, SFTP, SCP calls. All protocols are processed the same way and the API is a simple `Request` &gt; `Response` mechanism.

It is inspired by the Guzzle 3 implementation with a simpler approach (no curl\_multi, no SSL...), just Request and Response handling. For the moment cURL is the only implementation and all Requests options are [`CURL_*`](http://php.net/manual/fr/function.curl-setopt.php) options...

Installing
----------

[](#installing)

[![Latest Stable Version](https://camo.githubusercontent.com/bac6341c8c3853efb2f8f8bf3becb6c57377361db35ae75eeca81fdac008ab49/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626565342f7472616e73706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bee4/transport)[![Total Downloads](https://camo.githubusercontent.com/101c55ea0f8647b114908f09ae1b276fc78bdaa4019c8577d81684bda35b7674/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f626565342f7472616e73706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bee4/transport)

This project can be installed using Composer. Add the following to your composer.json:

```
{
    "require": {
        "bee4/transport": "~1.2"
    }
}
```

or run this command:

```
composer require bee4/transport:~1.2
```

Example
-------

[](#example)

You must create a `Client` instance then built the request and send it to retrieve the response.

```
