PHPackages                             dazzle-php/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. dazzle-php/promise

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

dazzle-php/promise
==================

Dazzle Promise Implementation.

v0.4.1(8y ago)53.6k1[1 issues](https://github.com/dazzle-php/promise/issues)4MITPHPPHP &gt;=5.6.7

Since Sep 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/dazzle-php/promise)[ Packagist](https://packagist.org/packages/dazzle-php/promise)[ Docs](http://kraken-php.com)[ RSS](/packages/dazzle-php-promise/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (10)Used By (4)

Dazzle Promise Implementation
=============================

[](#dazzle-promise-implementation)

[![Build Status](https://camo.githubusercontent.com/9246eeca3b39ea724ec1ccec48131b22e2c08b094e49fadae8bb980b70cf7330/68747470733a2f2f7472617669732d63692e6f72672f64617a7a6c652d7068702f70726f6d6973652e737667)](https://travis-ci.org/dazzle-php/promise)[![Code Coverage](https://camo.githubusercontent.com/776698e8381219ef684d9342e0e11423e986661caabafbfe3d5c64002743eb1a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617a7a6c652d7068702f70726f6d6973652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dazzle-php/promise/?branch=master)[![Code Quality](https://camo.githubusercontent.com/2f3fcee683e3e41011eefd6ac27020487fcde2b8b0784f0da153b6fc6df146af/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617a7a6c652d7068702f70726f6d6973652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dazzle-php/promise/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/641084c7cf7925fea9024d1d2e4fb32ff7d49728351f8533551b166d4db8de7b/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f70726f6d6973652f762f737461626c65)](https://packagist.org/packages/dazzle-php/promise)[![Latest Unstable Version](https://camo.githubusercontent.com/ac97d957dda9bbb92d7341f2828a8a054e230204e513abf374f7a818aeaa5ab6/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f70726f6d6973652f762f756e737461626c65)](https://packagist.org/packages/dazzle-php/promise)[![License](https://camo.githubusercontent.com/b4048e1483a72e7bc38ff8dba7414cd003c68ff5761e785185b424c6c36f0fc6/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f70726f6d6973652f6c6963656e7365)](https://packagist.org/packages/dazzle-php/promise/license)

> **Note:** This repository is part of [Dazzle Project](https://github.com/dazzle-php/dazzle) - the next-gen library for PHP. The project's purpose is to provide PHP developers with a set of complete tools to build functional async applications. Please, make sure you read the attached README carefully and it is guaranteed you will be surprised how easy to use and powerful it is. In the meantime, you might want to check out the rest of our async libraries in [Dazzle repository](https://github.com/dazzle-php) for the full extent of Dazzle experience.

[![](https://raw.githubusercontent.com/dazzle-php/dazzle/master/media/dazzle-x125.png)](https://raw.githubusercontent.com/dazzle-php/dazzle/master/media/dazzle-x125.png)

Description
-----------

[](#description)

Dazzle Promise is a component that provides PHP implementation of promises specification and additional promise-related concepts such as joining, mapping, reducing and cancelling promises.

Feature Highlights
------------------

[](#feature-highlights)

Dazzle Promise features:

- Implementation of promises,
- Methods to resolve, reject or cancel promises,
- Cancellation of promises using forget semantics,
- Methods to join, map, race, reduce and do other things with set of promises,
- ...and more.

Provided Example(s)
-------------------

[](#provided-examples)

### Quickstart

[](#quickstart)

TODO

### Additional

[](#additional)

TODO

Requirements
------------

[](#requirements)

Dazzle Promise requires:

- PHP-5.6 or PHP-7.0+,
- UNIX or Windows OS.

Installation
------------

[](#installation)

To install this library make sure you have [composer](https://getcomposer.org/) installed, then run following command:

```
$> composer require dazzle-php/promise

```

Tests
-----

[](#tests)

Tests can be run via:

```
$> vendor/bin/phpunit -d memory_limit=1024M

```

Versioning
----------

[](#versioning)

Versioning of Dazzle libraries is being shared between all packages included in [Dazzle Project](https://github.com/dazzle-php/dazzle). That means the releases are being made concurrently for all of them. On one hand this might lead to "empty" releases for some packages at times, but don't worry. In the end it is far much easier for contributors to maintain and -- what's the most important -- much more straight-forward for users to understand the compatibility and inter-operability of the packages.

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

[](#contributing)

Thank you for considering contributing to this repository!

- The contribution guide can be found in the [contribution tips](https://github.com/dazzle-php/promise/blob/master/CONTRIBUTING.md).
- Open tickets can be found in [issues section](https://github.com/dazzle-php/promise/issues).
- Current contributors are listed in [graphs section](https://github.com/dazzle-php/promise/graphs/contributors)
- To contact the author(s) see the information attached in [composer.json](https://github.com/dazzle-php/promise/blob/master/composer.json) file.

License
-------

[](#license)

Dazzle Framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

---

*"Everything is possible. The impossible just takes longer."* ― Dan Brown

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~35 days

Recently: every ~67 days

Total

9

Last Release

3246d ago

PHP version history (2 changes)v0.3.0PHP &gt;=5.5.9

0.4.x-devPHP &gt;=5.6.7

### Community

Maintainers

![](https://www.gravatar.com/avatar/edd40f7be77d3f9934f998dc0859d0562e42c715d61f5139feaf948a2fcb6050?d=identicon)[khelle](/maintainers/khelle)

---

Top Contributors

[![khelle](https://avatars.githubusercontent.com/u/5642657?v=4)](https://github.com/khelle "khelle (31 commits)")

---

Tags

asynccancelling-promisesdazzlephpphp-libphp7promiseasyncasynchronouspromisekrakenkraken-php

### Embed Badge

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

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

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k123.4M323](/packages/amphp-amp)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

91943.6M138](/packages/revolt-event-loop)[amphp/parallel

Parallel processing component for Amp.

84746.2M74](/packages/amphp-parallel)[icicleio/icicle

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

1.1k150.9k14](/packages/icicleio-icicle)[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)

PHPackages © 2026

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