PHPackages                             react-parallel/future-to-promise-converter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. react-parallel/future-to-promise-converter

Abandoned → [react-parallel/event-loop](/?search=react-parallel%2Fevent-loop)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

react-parallel/future-to-promise-converter
==========================================

🛸 ext-parallel Future to ReactPHP Promise converter

1.0.0(6y ago)0320[1 PRs](https://github.com/reactphp-parallel/future-to-promise-converter/pulls)MITPHPPHP ^7.4

Since Feb 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/reactphp-parallel/future-to-promise-converter)[ Packagist](https://packagist.org/packages/react-parallel/future-to-promise-converter)[ RSS](/packages/react-parallel-future-to-promise-converter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

ext-parallel Future to ReactPHP Promise converter
=================================================

[](#ext-parallel-future-to-reactphp-promise-converter)

[![Continuous Integration](https://github.com/Reactphp-parallel/future-to-promise-converter/workflows/Continuous%20Integration/badge.svg)](https://github.com/Reactphp-parallel/future-to-promise-converter/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/ae54418a57156c18c943360d270eedaeeb15d29f17ee88f38ad01c7dcce68db5/68747470733a2f2f706f7365722e707567782e6f72672f52656163742d706172616c6c656c2f6675747572652d746f2d70726f6d6973652d636f6e7665727465722f762f737461626c652e706e67)](https://packagist.org/packages/React-parallel/future-to-promise-converter)[![Total Downloads](https://camo.githubusercontent.com/e58e80d2a8b6622db86d821dc8d9ae599e8ed384e041017c3183752ecb6099e5/68747470733a2f2f706f7365722e707567782e6f72672f52656163742d706172616c6c656c2f6675747572652d746f2d70726f6d6973652d636f6e7665727465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/React-parallel/future-to-promise-converter)[![Code Coverage](https://camo.githubusercontent.com/2c09e276f634b57eceb825da359952723198400c5e9c2a3888dc06da15761ae8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f52656163747068702d706172616c6c656c2f6675747572652d746f2d70726f6d6973652d636f6e7665727465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Reactphp-parallel/future-to-promise-converter/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/5205be3705592c7089a30ca1b56845a67d0d1d78e90d0e406aabc1c33b31ddc4/68747470733a2f2f73686570686572642e6465762f6769746875622f52656163747068702d706172616c6c656c2f6675747572652d746f2d70726f6d6973652d636f6e7665727465722f636f7665726167652e737667)](https://shepherd.dev/github/Reactphp-parallel/future-to-promise-converter)[![License](https://camo.githubusercontent.com/7c736dce40d9d6548d5ef3364c683a67996a3d218beef1aaa9e14ca0806f42d4/68747470733a2f2f706f7365722e707567782e6f72672f52656163742d706172616c6c656c2f6675747572652d746f2d70726f6d6973652d636f6e7665727465722f6c6963656e73652e706e67)](https://packagist.org/packages/React-parallel/future-to-promise-converter)

Install
=======

[](#install)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require react-parallel/future-to-promise-converter

```

Usage
=====

[](#usage)

```
use parallel\Future;
use parallel\Runtime;
use React\EventLoop\Factory;
use ReactParallel\FutureToPromiseConverter\FutureToPromiseConverter;

$loop = Factory::create();
$converter = new FutureToPromiseConverter($loop);

$runtime = new Runtime('vendor/autoload.php');

/** @var Future $future */
$future = $runtime->run(function () {
    sleep(3);

    return 3;
});

$converter->convert($future)->done(function ($value) {
    // $value will be 3 here
});
```

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2019 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2265d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (34 commits)")

---

Tags

converterext-parallelfuturehacktoberfestpromisereactphp

### Embed Badge

![Health badge](/badges/react-parallel-future-to-promise-converter/health.svg)

```
[![Health](https://phpackages.com/badges/react-parallel-future-to-promise-converter/health.svg)](https://phpackages.com/packages/react-parallel-future-to-promise-converter)
```

###  Alternatives

[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M63](/packages/react-react)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)[mention/retry

A Retry library for PHP

1324.5k](/packages/mention-retry)[llm/mcp-server

PHP SDK for building MCP servers

431.1k](/packages/llm-mcp-server)

PHPackages © 2026

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