2017 © Pedro Peláez
 

library http-client

Extendable http client.

image

weew/http-client

Extendable http client.

  • Wednesday, February 22, 2017
  • by weew
  • Repository
  • 1 Watchers
  • 0 Stars
  • 133 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

HTTP client for PHP

Build Status Code Quality Test Coverage Version Licence, (*1)

Table of contents

Installation

composer require weew/http-client, (*2)

Introduction

Please check out the HTTP Layer project referenced above, since it does most of the work and offers a documentation for the underlying HttpRequest and HttpResponse objects., (*3)

This library uses CURL to transfer and receive data., (*4)

Usage

Below is a very basic example on how to use it., (*5)

$client = new HttpClient();
$request = new HttpRequest(
    HttpRequestMethod::GET, new Url('http://google.com')
);

// returns an HttpResponse
$response = $client->send($request);

// send response directly to the browser (act like a proxy)
$response->send();

JsonClient

There is a slightly different implementation of the HttpClient that is meant to be used whenever you are sure that you will always receive json responses. JsonClient will automatically cast HttpResponse to a JsonResponse., (*6)

$client = new JsonClient();
  • URL: used throughout the project.
  • HTTP Layer: offers response and request objects, handles cookies, headers and much more.

The Versions

22/02 2017

dev-master

9999999-dev

Extendable http client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

22/02 2017
27/07 2016

v1.7.0

1.7.0.0

Extendable http client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

06/05 2016

v1.6.0

1.6.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0
  • weew/php-url ^1.0
  • weew/php-helpers-string ^1.0
  • weew/php-helpers-array ^1.0
  • weew/php-curl-wrapper ^1.0

 

The Development Requires

by Maxim Kott

06/05 2016

v1.5.0

1.5.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0
  • weew/php-url ^1.0
  • weew/php-helpers-string ^1.0
  • weew/php-helpers-array ^1.0
  • weew/php-curl-wrapper ^1.0

 

The Development Requires

by Maxim Kott

02/05 2016

v1.4.0

1.4.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0
  • weew/php-url ^1.0
  • weew/php-helpers-string ^1.0
  • weew/php-helpers-array ^1.0
  • weew/php-curl-wrapper ^1.0

 

The Development Requires

by Maxim Kott

22/03 2016

v1.3.0

1.3.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0
  • weew/php-url ^1.0
  • weew/php-helpers-string ^1.0
  • weew/php-helpers-array ^1.0
  • weew/php-curl-wrapper ^1.0

 

The Development Requires

by Maxim Kott

27/01 2016

v1.2.2

1.2.2.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0
  • weew/php-url ^1.0
  • weew/php-helpers-string ^1.0
  • weew/php-helpers-array ^1.0
  • weew/php-curl-wrapper ^1.0

 

The Development Requires

by Maxim Kott

27/01 2016

v1.2.1

1.2.1.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0
  • weew/php-url ^1.0
  • weew/php-helpers-string ^1.0
  • weew/php-helpers-array ^1.0
  • weew/php-curl-wrapper ^1.0

 

The Development Requires

by Maxim Kott

11/01 2016

v1.2.0

1.2.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0.0
  • weew/php-url ^1.0.0
  • weew/php-helpers-string ^1.0.0
  • weew/php-helpers-array ^1.0.0
  • weew/php-curl-wrapper ^1.0.0

 

The Development Requires

by Maxim Kott

18/11 2015

v1.1.0

1.1.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0.0
  • weew/php-url ^1.0.0
  • weew/php-helpers-string ^1.0.0
  • weew/php-helpers-array ^1.0.0
  • weew/php-curl-wrapper ^1.0.0

 

The Development Requires

by Maxim Kott

16/11 2015

v1.0.0

1.0.0.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http ^1.0.0
  • weew/php-url ^1.0.0
  • weew/php-helpers-string ^1.0.0
  • weew/php-helpers-array ^1.0.0
  • weew/php-curl-wrapper ^1.0.0

 

The Development Requires

by Maxim Kott

07/09 2015

v0.0.13

0.0.13.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

22/08 2015

v0.0.12

0.0.12.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

18/08 2015

v0.0.11

0.0.11.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

17/08 2015

v0.0.10

0.0.10.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

17/08 2015

v0.0.9

0.0.9.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

13/08 2015

v0.0.8

0.0.8.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

12/08 2015

v0.0.7

0.0.7.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

03/08 2015

v0.0.6

0.0.6.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

31/07 2015

v0.0.5

0.0.5.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

29/07 2015

v0.0.4

0.0.4.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*
  • weew/php-curl-wrapper 0.*

 

The Development Requires

by Maxim Kott

22/07 2015

v0.0.3

0.0.3.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*

 

The Development Requires

by Maxim Kott

22/07 2015

v0.0.2

0.0.2.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*

 

The Development Requires

by Maxim Kott

21/07 2015

v0.0.1

0.0.1.0

Extendable curl client.

  Sources   Download

MIT

The Requires

  • weew/php-http 0.*
  • weew/php-url 0.*
  • weew/php-helpers-string 0.*
  • weew/php-helpers-array 0.*
  • weew/php-http-blueprint 0.*

 

The Development Requires

by Maxim Kott