Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@
A lightweight implementation of [CommonJS Promises/A][CommonJS Promises/A] for PHP.

> [!NOTE]
> This is a fork of [reactphp/promise][reactphp/promise] with the following improvements:
> - PHP 8.1+
> - `declare(strict_types=1);` in all the PHP files
> This is a fork of [reactphp/promise][reactphp/promise].
>
> Improvements over original reactphp/promise:
>
> - PHP 8.1+ compatibility
> - `declare(strict_types=1);` in all PHP files
> - `@yield` annotation in the PromiseInterface
> - Replaces `react/promise` v3
> - Make rejection handler reusable. `error_log()` is still used by default.
>
> Version 3.x specific:
> - Replaces `react/promise` v3 in Composer
> - Rejection handler is reusable now. `error_log()` is still used by default.
> - Removed `exit(255)` from RejectionPromise.
>
> Version 2.x specific:
> - Replaces `react/promise` v2 in Composer
> - Enhanced type annotations

## Install

Expand Down Expand Up @@ -55,3 +64,5 @@ Also, large parts of the [documentation][documentation] have been ported from th
[when.js]: https://github.com/cujojs/when
[Brian Cavalier]: https://github.com/briancavalier
[reactphp/promise]: https://github.com/reactphp/promise
[Wiki]: https://github.com/cujojs/when/wiki
[API docs]: https://github.com/cujojs/when/blob/master/docs/api.md
Loading