11# JBZoo / Http-Client
22
3- [ ![ Build Status] ( https://travis-ci.org/JBZoo/Http-Client.svg )] ( https://travis-ci.org/JBZoo/Http-Client ) [ ![ Coverage Status] ( https://coveralls.io/repos/JBZoo/Http-Client/badge.svg )] ( https://coveralls.io/github/JBZoo/Http-Client ) [ ![ Psalm Coverage] ( https://shepherd.dev/github/JBZoo/Http-Client/coverage.svg )] ( https://shepherd.dev/github/JBZoo/Http-Client )
3+ [ ![ Build Status] ( https://travis-ci.org/JBZoo/Http-Client.svg )] ( https://travis-ci.org/JBZoo/Http-Client ) [ ![ Coverage Status] ( https://coveralls.io/repos/JBZoo/Http-Client/badge.svg )] ( https://coveralls.io/github/JBZoo/Http-Client ) [ ![ Psalm Coverage] ( https://shepherd.dev/github/JBZoo/Http-Client/coverage.svg )] ( https://shepherd.dev/github/JBZoo/Http-Client ) [ ![ PHP Strict Types ] ( https://img.shields.io/badge/strict__types-%3D1-brightgreen )] ( https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict )
44[ ![ Stable Version] ( https://poser.pugx.org/jbzoo/http-client/version )] ( https://packagist.org/packages/jbzoo/http-client ) [ ![ Latest Unstable Version] ( https://poser.pugx.org/jbzoo/http-client/v/unstable )] ( https://packagist.org/packages/jbzoo/http-client ) [ ![ Dependents] ( https://poser.pugx.org/jbzoo/http-client/dependents )] ( https://packagist.org/packages/jbzoo/http-client/dependents?order_by=downloads ) [ ![ GitHub Issues] ( https://img.shields.io/github/issues/jbzoo/http-client )] ( https://github.com/JBZoo/Http-Client/issues ) [ ![ Total Downloads] ( https://poser.pugx.org/jbzoo/http-client/downloads )] ( https://packagist.org/packages/jbzoo/http-client/stats ) [ ![ GitHub License] ( https://img.shields.io/github/license/jbzoo/http-client )] ( https://github.com/JBZoo/Http-Client/blob/master/LICENSE )
55
66
@@ -10,7 +10,7 @@ Just make HTTP requests in one line and don't care about terrible syntax of Guzz
1010
1111## Install
1212``` sh
13- composer require guzzlehttp/guzzle --no-update # Recomended , but not required
13+ composer require guzzlehttp/guzzle --no-update # Recommended , but not required
1414composer require jbzoo/http-client
1515```
1616
@@ -32,7 +32,7 @@ $httpClient = new HttpClient([
3232 'verify' => false, // Check cert for SSL
3333 'exceptions' => false, // Show exceptions for statuses 4xx and 5xx
3434 'allow_redirects' => true, // Show real 3xx-header or result?
35- 'max_redirects' => 10, // How much to reirect ?
35+ 'max_redirects' => 10, // How much to redirect ?
3636 'user_agent' => "It's me", // Custom UserAgent
3737]);
3838
@@ -70,7 +70,10 @@ $value = $json->find('key.nested', 'default', 'trim');
7070
7171
7272## Asynchronous requests (curl_multi_ * for parallels)
73+
7374``` php
75+ use JBZoo\HttpClient\HttpClient;
76+
7477$httpClient = new HttpClient();
7578
7679$results = $httpClient->multiRequest(array(
0 commit comments