PHPackages                             php-http/promise - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. php-http/promise

ActiveLibrary[Queues &amp; Workers](/categories/queues)

php-http/promise
================

Promise used for asynchronous HTTP requests

1.3.1(2y ago)1.8k308.8M—2.8%12[1 issues](https://github.com/php-http/promise/issues)[2 PRs](https://github.com/php-http/promise/pulls)20MITPHPPHP ^7.1 || ^8.0CI passing

Since Dec 13Pushed 5mo ago6 watchersCompare

[ Source](https://github.com/php-http/promise)[ Packagist](https://packagist.org/packages/php-http/promise)[ Docs](http://httplug.io)[ RSS](/packages/php-http-promise/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (14)Used By (20)

Promise
=======

[](#promise)

[![Latest Version](https://camo.githubusercontent.com/74b98913819ac64637f48effea115db4d1963d02346020dc1c5c418e7cf9295c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7068702d687474702f70726f6d6973652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-http/promise/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://github.com/php-http/promise/actions/workflows/tests.yml/badge.svg?branch=1.x)](https://github.com/php-http/promise/actions/workflows/tests.yml)[![Code Coverage](https://camo.githubusercontent.com/6641dcba14acbe2a9d97295b2e0b62bd5509843a9544921ada1193238234d998/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068702d687474702f70726f6d6973652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/promise)[![Quality Score](https://camo.githubusercontent.com/a035c5b13ae54942db4db24940a2b47c8b724039839c3e3f14c37c0126080783/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d687474702f70726f6d6973652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/promise)[![Total Downloads](https://camo.githubusercontent.com/0848c7cbb7d8a64bd05f4212a4f4424ccfdad3d2c2cfd7924e16be45fb1e0353/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d687474702f70726f6d6973652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-http/promise)

**Promise used for asynchronous HTTP requests.**

**Note:** This will eventually be removed/deprecated and replaced with the upcoming Promise PSR.

Install
-------

[](#install)

Via Composer

```
$ composer require php-http/promise
```

Documentation
-------------

[](#documentation)

Please see the [official documentation](http://docs.php-http.org/en/latest/components/promise.html).

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance49

Moderate activity, may be stable

Popularity78

Solid adoption and visibility

Community37

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~329 days

Recently: every ~169 days

Total

12

Last Release

187d ago

Major Versions

v0.1.1 → v1.0.0-RC12016-01-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://avatars.githubusercontent.com/u/76576?v=4)[David Buchmann](/maintainers/dbu)[@dbu](https://github.com/dbu)

![](https://www.gravatar.com/avatar/3fb6e13a139230893f783118651540d3d057979fd726fefd135b1b397873010e?d=identicon)[php-http](/maintainers/php-http)

---

Top Contributors

[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (30 commits)")[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (17 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (13 commits)")[![Ndiritu](https://avatars.githubusercontent.com/u/10958912?v=4)](https://github.com/Ndiritu "Ndiritu (2 commits)")[![Radiergummi](https://avatars.githubusercontent.com/u/6115429?v=4)](https://github.com/Radiergummi "Radiergummi (2 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (1 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (1 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")[![hubipe](https://avatars.githubusercontent.com/u/617880?v=4)](https://github.com/hubipe "hubipe (1 commits)")[![joelwurtz](https://avatars.githubusercontent.com/u/90466?v=4)](https://github.com/joelwurtz "joelwurtz (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

promise

### Embed Badge

![Health badge](/badges/php-http-promise/health.svg)

```
[![Health](https://phpackages.com/badges/php-http-promise/health.svg)](https://phpackages.com/packages/php-http-promise)
```

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k123.4M323](/packages/amphp-amp)[react/promise

A lightweight implementation of CommonJS Promises/A for PHP

2.5k361.9M563](/packages/react-promise)[react/promise-timer

A trivial implementation of timeouts for Promises, built on top of ReactPHP.

34141.9M96](/packages/react-promise-timer)[sabre/event

sabre/event is a library for lightweight event-based programming

35227.4M25](/packages/sabre-event)[icicleio/icicle

Icicle is a PHP library for writing asynchronous code using synchronous coding techniques.

1.1k150.9k14](/packages/icicleio-icicle)[react/promise-stream

The missing link between Promise-land and Stream-land for ReactPHP

11512.9M45](/packages/react-promise-stream)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
