PHPackages                             wyrihaximus/phpstan-react - 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. wyrihaximus/phpstan-react

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

wyrihaximus/phpstan-react
=========================

👎 ReactPHP extension for PHPStan

2.0.0(1y ago)2324.0k↑3190%[2 issues](https://github.com/WyriHaximus/phpstan-reactphp/issues)2MITMakefilePHP ^8.3CI passing

Since Feb 29Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/WyriHaximus/phpstan-reactphp)[ Packagist](https://packagist.org/packages/wyrihaximus/phpstan-react)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-phpstan-react/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (2)

ReactPHP Extension for PHPStan
==============================

[](#reactphp-extension-for-phpstan)

[![Continuous Integration](https://github.com/WyriHaximus/phpstan-reactphp/workflows/Continuous%20Integration/badge.svg)](https://github.com/WyriHaximus/phpstan-reactphp/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/b490fd29e63fb25eca5f6332f7a4efbae3b81ff35c9361dfc960d69c4cc1dd07/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7068707374616e2d72656163742f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/phpstan-react)[![Total Downloads](https://camo.githubusercontent.com/56cdd56c863c26e169aeded8b8b1911214dac8eab0b58cd3a2926832af6448b3/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7068707374616e2d72656163742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/phpstan-react)[![License](https://camo.githubusercontent.com/cd35bf637c4415a336b1f270657a455f281cf750ccd846ab964c0f05ac5ad2b2/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7068707374616e2d72656163742f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/phpstan-react)

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 wyrihaximus/phpstan-react

```

Usage
=====

[](#usage)

Include the rules file from the root of this package to have PHPStan check your code for blocking functions:

```
includes:
	- vendor/wyrihaximus/phpstan-react/phpstan-reactphp-rules.neon
```

Functions
=========

[](#functions)

fclose
------

[](#fclose)

file\_exists
------------

[](#file_exists)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\AdapterInterface::detect

Documentation:

-

file\_get\_contents
-------------------

[](#file_get_contents)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\Node\\FileInterface::getContents

Documentation:

-

file\_put\_contents
-------------------

[](#file_put_contents)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\Node\\FileInterface::putContents

Documentation:

-

fopen
-----

[](#fopen)

Relevant package(s):

- react/filesystem
- react/socket

Suggested replacement(s):

- React\\Filesystem\\Node\\FileInterface::getContents
- React\\Socket\\Connector::connect

Documentation:

-
-

fread
-----

[](#fread)

Relevant package(s):

- react/stream

Suggested replacement(s):

- React\\Stream\\ReadableStreamInterface::on

Documentation:

-

fwrite
------

[](#fwrite)

Relevant package(s):

- react/stream

Suggested replacement(s):

- React\\Stream\\WritableStreamInterface::write

Documentation:

-

gethostbyname
-------------

[](#gethostbyname)

Relevant package(s):

- react/dns

Suggested replacement(s):

- React\\Dns\\ResolverInterface::resolve

Documentation:

-

is\_dir
-------

[](#is_dir)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\AdapterInterface::detect

Documentation:

-

is\_file
--------

[](#is_file)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\AdapterInterface::detect

Documentation:

-

is\_link
--------

[](#is_link)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\AdapterInterface::detect

Documentation:

-

mkdir
-----

[](#mkdir)

Relevant package(s):

- react/filesystem

Suggested replacement(s):

- React\\Filesystem\\Node\\NotExistInterface::createDirectory

Documentation:

-

sleep
-----

[](#sleep)

Relevant package(s):

- react/promise-timer

Suggested replacement(s):

- React\\Promise\\Timer\\sleep

Documentation:

-

time\_nanosleep
---------------

[](#time_nanosleep)

Relevant package(s):

- react/promise-timer

Suggested replacement(s):

- React\\Promise\\Timer\\sleep

Documentation:

-

time\_sleep\_until
------------------

[](#time_sleep_until)

Relevant package(s):

- react/promise-timer

Suggested replacement(s):

- React\\Promise\\Timer\\sleep

Documentation:

-

usleep
------

[](#usleep)

Relevant package(s):

- react/promise-timer

Suggested replacement(s):

- React\\Promise\\Timer\\sleep

Documentation:

-

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2024 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

44

—

FairBetter than 92% of packages

Maintenance50

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.6% 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 ~422 days

Total

2

Last Release

387d ago

Major Versions

1.0.0 → 2.0.02025-04-26

PHP version history (2 changes)1.0.0PHP ^8.2

2.0.0PHP ^8.3

### 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)")[![renovate-runner[bot]](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/renovate-runner[bot] "renovate-runner[bot] (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/wyrihaximus-phpstan-react/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-phpstan-react/health.svg)](https://phpackages.com/packages/wyrihaximus-phpstan-react)
```

###  Alternatives

[christianbarkowsky/contao-protectedselect

Adds a new form select widget which hides the internal field values in the frontend

107.4k1](/packages/christianbarkowsky-contao-protectedselect)[rexxars/morse

Generate morse code (text and/or wav-audio)

113.2k](/packages/rexxars-morse)

PHPackages © 2026

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