PHPackages                             ahmard/simple-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. ahmard/simple-promise

ActiveLibrary

ahmard/simple-promise
=====================

A simple PHP promise library that works synchronously.

1.0.0(5y ago)427MITPHPPHP ^7.4

Since Jul 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Ahmard/simple-promise)[ Packagist](https://packagist.org/packages/ahmard/simple-promise)[ RSS](/packages/ahmard-simple-promise/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Simple Promise
==============

[](#simple-promise)

A simple PHP promise library that works synchronously.

### Note

[](#note)

Please note that this library cannot be used in Asynchronous projects, projects like [ReactPHP](https://reactphp.org) or [Amphp](https://amphp.org).

### Installation

[](#installation)

Make sure that you have composer installed [Composer](http://getcomposer.org).

If you don't have Composer run the below command

```
curl -sS https://getcomposer.org/installer | php
```

Run the installation

```
composer require ahmard/simple-promise ^1.0
```

### Usage

[](#usage)

```
