PHPackages                             phpgt/fetch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. phpgt/fetch

ActiveLibrary[HTTP &amp; Networking](/categories/http)

phpgt/fetch
===========

Asynchronous HTTP client with promises.

v1.2.2(5mo ago)3724.0k↑14.7%8[2 issues](https://github.com/PhpGt/Fetch/issues)[3 PRs](https://github.com/PhpGt/Fetch/pulls)3MITPHPPHP &gt;=8.3CI passing

Since Oct 1Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/PhpGt/Fetch)[ Packagist](https://packagist.org/packages/phpgt/fetch)[ GitHub Sponsors](https://github.com/sponsors/PhpGt)[ RSS](/packages/phpgt-fetch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (35)Used By (3)

Asynchronous HTTP client with promises.
=======================================

[](#asynchronous-http-client-with-promises)

Asynchronous HTTP client, implementation of the [Fetch Standard](https://fetch.spec.whatwg.org/) which defines requests, responses, and the process that binds them: *fetching*.

See also, the [JavaScript implementation](https://developer.mozilla.org/en/docs/Web/API/Fetch_API) that ships as standard in all modern browsers.

---

[ ![Build status](https://camo.githubusercontent.com/feb8a3f9a87140ef022354d04de6718385da619adb1b0cb1407db563f56cb5ac/68747470733a2f2f62616467652e7374617475732e7068702e67742f66657463682d6275696c642e737667)](https://github.com/PhpGt/Fetch/actions)[ ![Code quality](https://camo.githubusercontent.com/c4a68e0ce97a2deb6dda018cd52eb1d54bcb0e0739ef5031516dfbeb8074b578/68747470733a2f2f62616467652e7374617475732e7068702e67742f66657463682d7175616c6974792e737667)](https://app.codacy.com/gh/PhpGt/Fetch)[ ![Code coverage](https://camo.githubusercontent.com/bacc9766bc00d57f31122dbbb904fdc19a119a192363b5c90e28842e713ba20e/68747470733a2f2f62616467652e7374617475732e7068702e67742f66657463682d636f7665726167652e737667)](https://app.codecov.io/gh/PhpGt/Fetch)[ ![Current version](https://camo.githubusercontent.com/a29f47c66583ffbba6e7b344b2933b1652a760baea785861e1e266bfe0e4599f/68747470733a2f2f62616467652e7374617475732e7068702e67742f66657463682d76657273696f6e2e737667)](https://packagist.org/packages/PhpGt/Fetch)[ ![PHP.Gt/Fetch documentation](https://camo.githubusercontent.com/b0cac4177fdebabb0b4eeface4630f10553736d6a0484415dc9db8115788d143/68747470733a2f2f62616467652e7374617475732e7068702e67742f66657463682d646f63732e737667)](https://www.php.gt/fetch)Example usage: compute multiple HTTP requests in parallel, using `fetch`
------------------------------------------------------------------------

[](#example-usage-compute-multiple-http-requests-in-parallel-using-fetch)

```
