1
1
# JBZoo / Http-Client
2
2
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 )
4
4
[ ![ 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 )
5
5
6
6
@@ -10,7 +10,7 @@ Just make HTTP requests in one line and don't care about terrible syntax of Guzz
10
10
11
11
## Install
12
12
``` sh
13
- composer require guzzlehttp/guzzle --no-update # Recomended , but not required
13
+ composer require guzzlehttp/guzzle --no-update # Recommended , but not required
14
14
composer require jbzoo/http-client
15
15
```
16
16
@@ -32,7 +32,7 @@ $httpClient = new HttpClient([
32
32
'verify' => false, // Check cert for SSL
33
33
'exceptions' => false, // Show exceptions for statuses 4xx and 5xx
34
34
'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 ?
36
36
'user_agent' => "It's me", // Custom UserAgent
37
37
]);
38
38
@@ -70,7 +70,10 @@ $value = $json->find('key.nested', 'default', 'trim');
70
70
71
71
72
72
## Asynchronous requests (curl_multi_ * for parallels)
73
+
73
74
``` php
75
+ use JBZoo\HttpClient\HttpClient;
76
+
74
77
$httpClient = new HttpClient();
75
78
76
79
$results = $httpClient->multiRequest(array(
0 commit comments