PHPackages                             bocmah/psalm-reactphp-promise-plugin - 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. bocmah/psalm-reactphp-promise-plugin

ActivePsalm-plugin[Utility &amp; Helpers](/categories/utility)

bocmah/psalm-reactphp-promise-plugin
====================================

Psalm plugin for react/promise

0.1.1(5y ago)21.4k1MITPHP

Since Jan 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Bocmah/psalm-reactphp-promise-plugin)[ Packagist](https://packagist.org/packages/bocmah/psalm-reactphp-promise-plugin)[ RSS](/packages/bocmah-psalm-reactphp-promise-plugin/feed)WikiDiscussions main Synced 3w ago

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

Psalm plugin for ReactPHP Promise package
=========================================

[](#psalm-plugin-for-reactphp-promise-package)

A [Psalm](https://github.com/vimeo/psalm) plugin for [reactphp/promise](https://github.com/reactphp/promise).

Overview
--------

[](#overview)

This package brings support for template parameters in `PromiseInterface`. So you can type-hint resolution template parameter, e.g. `PromiseInterface` instead of plain `PromiseInterface`.

It also adds an `otherwise()` method to `PromiseInterface` as a stub, which allows Psalm to recognize constructs like

```
$promise
    ->then(
        function () {
            echo 'Success' . PHP_EOL;
        }
    )
    ->otherwise(
        function (\Throwable $error) {
            echo 'Failure: ' . $error->getMessage() . PHP_EOL
        }
    );
```

Prerequisites
-------------

[](#prerequisites)

You should have [Psalm](https://github.com/vimeo/psalm) installed.

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

[](#installation)

Install plugin as a dev dependency via composer:

`composer require --dev bocmah/psalm-reactphp-promise-plugin`

Then enable the plugin:

`./vendor/bin/psalm-plugin enable bocmah/psalm-reactphp-promise-plugin`

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

1984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/406685f3f5176bf3fde2e9be136f9654f7d4ed733eca6e4c82a6baa4615bdbf1?d=identicon)[Bocmah](/maintainers/Bocmah)

---

Top Contributors

[![Bocmah](https://avatars.githubusercontent.com/u/32432647?v=4)](https://github.com/Bocmah "Bocmah (1 commits)")

---

Tags

promisepsalmreactphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bocmah-psalm-reactphp-promise-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/bocmah-psalm-reactphp-promise-plugin/health.svg)](https://phpackages.com/packages/bocmah-psalm-reactphp-promise-plugin)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[php-standard-library/psalm-plugin

Psalm plugin for the PHP Standard Library

252.1M66](/packages/php-standard-library-psalm-plugin)[humanmade/psalm-plugin-wordpress

WordPress stubs and plugin for Psalm static analysis.

82505.2k24](/packages/humanmade-psalm-plugin-wordpress)[codeigniter4/devkit

Development toolkit for CodeIgniter libraries and projects

69201.9k121](/packages/codeigniter4-devkit)

PHPackages © 2026

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