https://github.com/robertov8/guzzle-zend
https://github.com/robertov8/guzzle-zend
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertov8/guzzle-zend
- Owner: robertov8
- Created: 2022-09-12T11:57:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T12:04:40.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T07:42:09.070Z (7 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guzzle - Zend Http
:metal: Guzzle to Zend Http Adapter, justa change you instance ;)O pacote está disponivel somente no metodo $client->request(...), as demais funções e novas implementações estão em aberto via GitHub.
Basta utilizar, de forma identica a utilização do Guzzle.
## Zend Http + Adapter
```php
'http://httpbin.org',
'timeout' => 2.0,
]);$response = $client->request('GET', '/root');
$response = $client->request('GET', '/root');
$responseBody = $response->getBody();
$responseBodyContents = $responseBody->getContents();
```
## Guzzle
```php
'http://httpbin.org',
'timeout' => 2.0,
]);$response = $client->request('GET', '/root');
$responseBody = $response->getBody();
$responseBodyContents = $responseBody->getContents();```