2017 © Pedro Peláez
 

library http-adapter

HttpAdapter PHP 5.3+ library

image

toin0u/http-adapter

HttpAdapter PHP 5.3+ library

  • Thursday, January 16, 2014
  • by toin0u
  • Repository
  • 1 Watchers
  • 7 Stars
  • 63,825 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

HttpAdapter

This PHP 5.3+ library provides you simple HTTP adapters., (*1)

Build Status Coverage Status Latest Stable Version Total Downloads SensioLabsInsight, (*2)

Installation

This library can be found on Packagist. The recommended way to install this is through composer., (*3)

Edit compose.json and add:, (*4)

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

And install dependecies:, (*5)

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

Available adapters

  • CurlHttpAdapter to use cURL.
  • BuzzHttpAdapter to use Buzz, a lightweight PHP 5.3 library for issuing HTTP requests.
  • GuzzleHttpAdapter to use Guzzle, PHP 5.3+ HTTP client and framework for building RESTful web service clients.
  • ZendHttpAdapter to use Zend Http Client.
  • SocketHttpAdapter to use a socket.

Usage

<?php

require 'vendor/autoload.php';

$adapter = new HttpAdapter\CurlHttpAdapter;
$url     = 'http://ifconfig.me/ip';

printf('IP: %s', $adapter->getContent($url)); // IP: 127.0.0.1

Contributing

Please see CONTRIBUTING for details., (*6)

Credits

Acknowledgment

This set of adapters comes originally from the Geocoder PHP library., (*7)

Support

Please open an issues in github, (*8)

License

HttpAdapter is released under the MIT License. See the bundled LICENSE file for details., (*9)

The Versions

16/01 2014

dev-master

9999999-dev https://github.com/toin0u/HttpAdapter

HttpAdapter PHP 5.3+ library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

http adapter

26/05 2013

1.0.3

1.0.3.0 https://github.com/toin0u/HttpAdapter

HttpAdapter PHP 5.3+ library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

http adapter

26/05 2013

1.0.2

1.0.2.0 https://github.com/toin0u/HttpAdapter

HttpAdapter PHP 5.3+ library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

http adapter

26/05 2013

1.0.1

1.0.1.0 https://github.com/toin0u/HttpAdapter

HttpAdapter PHP 5.3+ library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

http adapter

26/05 2013

1.0.0

1.0.0.0 https://github.com/toin0u/HttpAdapter

HttpAdapter PHP 5.3+ library

  Sources   Download

MIT

The Requires

 

The Development Requires

http adapter