Download the PHP package lemmon/fetch without Composer
On this page you can find all versions of the php package lemmon/fetch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor lemmon
Package fetch
Short Description JavaScript's fetch() implementation on top of Guzzle
License MIT
Package fetch
Short Description JavaScript's fetch() implementation on top of Guzzle
License MIT
Please rate this library. Is it a good library?
Informations about the package fetch
Fetch, simple PHP HTTP client
Fetch is a tiny function, wrapped around Guzzle, PHP HTTP client. Inspired by Web API fetch() function.
Examples
Installing Fetch
API
Parameters
$resource
- a resource that you wish to fetch (e.g. http://httpbin.org/post)$init
(optional) - options array; see Guzzle's Request Options documentation page for more info about available parameters; note: use additional parametermethod
to define request method; default method is GET
Response
ok()
- (bool) has response been successfulstatus()
- (int) status codestatusText()
- (string) status textbody()
- (string) response bodyjson(bool $assoc = FALSE)
- JSON parsed response bodypsr()
- (GuzzleHttp\Psr7\Response) Guzzle's PSR-7 response (read more in Guzzle's official documentation)
Read more
- Guzzle - HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services
- PSR-7 - HTTP message interfaces
- fetch() - Web API fetch()
License
All versions of fetch with dependencies
PHP Build Version
Package Version
The package lemmon/fetch contains the following files
Loading the files please wait ....