Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robertov8/guzzle-zend
https://github.com/robertov8/guzzle-zend
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertov8/guzzle-zend
- Owner: robertov8
- Created: 2022-09-12T11:57:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T12:04:40.000Z (about 2 years ago)
- Last Synced: 2024-04-18T05:04:41.901Z (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();```