Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/robertov8/guzzle-zend


https://github.com/robertov8/guzzle-zend

Last synced: about 4 hours ago
JSON representation

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();

```