99designs / ergo-http
Micro-HTTP client for PHP 5.3
Installs: 4 504
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 69
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
- psr/log: ~1
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-11-19 23:25:51 UTC
README
A light-weight HTTP library for PHP5.3. Provides a client and some URL utils.
Extracted from 99designs/ergo.
Install
composer require 99designs/ergo-http
.
Basic Usage
$client = new \Ergo\Http\Client(new \Ergo\Http\Url($host)); $response = $client->get($path); echo $response->getBody();
How to develop
To install dependancies via Composer:
$ composer install --dev
Run the test suite:
$ phpunit
PHPUnit 3.7.38 by Sebastian Bergmann.
Configuration read from /home/vagrant/ergo-http/phpunit.xml.dist
...................................................
Time: 149 ms, Memory: 5.00Mb
OK (51 tests, 163 assertions)
Status
Used in several high-volume production websites, including 99designs.com, flippa.com, learnable.com and sitepoint.com.