PHPackages                             m3m0r7/async-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. m3m0r7/async-promise

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

m3m0r7/async-promise
====================

An async promise library written in PHP

0.0.1(3y ago)79MITPHPPHP &gt;=8.1

Since Mar 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/m3m0r7/async-promise)[ Packagist](https://packagist.org/packages/m3m0r7/async-promise)[ RSS](/packages/m3m0r7-async-promise/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (4)Versions (2)Used By (0)

English | [日本語](./README-ja.md)

---

AsyncPromise
============

[](#asyncpromise)

What is the AsyncPromise?
-------------------------

[](#what-is-the-asyncpromise)

The AsyncPromise is a library for processing concurrently on PHP which implementing similarity with Javascript's Promise.

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

[](#requirements)

- PHP 8.1 or higher
- Swoole (if you use SwooleDriver)

How to install
--------------

[](#how-to-install)

You can install as following command:

```
$ composer require m3m0r7/async-promise
```

How to use
----------

[](#how-to-use)

### Get started

[](#get-started)

The Promise can be used in the same way JavaScript as following:

```
