PHPackages                             wyrihaximus/react-env-notifier - 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/react-env-notifier

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

wyrihaximus/react-env-notifier
==============================

📣 Notifies when an environment variable changes

11.7k[3 PRs](https://github.com/WyriHaximus/reactphp-env-notifier/pulls)Makefile

Since Dec 5Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/reactphp-env-notifier)[ Packagist](https://packagist.org/packages/wyrihaximus/react-env-notifier)[ RSS](/packages/wyrihaximus-react-env-notifier/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

ReactPHP environment variable notifier
======================================

[](#reactphp-environment-variable-notifier)

Notifies when an environment variable changes

[![Continuous Integration](https://github.com/wyrihaximus/reactphp-env-notifier/workflows/Continuous%20Integration/badge.svg)](https://github.com/wyrihaximus/reactphp-env-notifier/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/03a36110084bfaebf0c475f1c7dbdbd73c8af75a9e99c75a98e05b54c0f12b28/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f72656163742d656e762d6e6f7469666965722f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/react-env-notifier)[![Total Downloads](https://camo.githubusercontent.com/c1406aba7469fd5d06568c29193eba259a23c5351f029f41d469c34731d8ff5a/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f72656163742d656e762d6e6f7469666965722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wyrihaximus/react-env-notifier/stats)[![Type Coverage](https://camo.githubusercontent.com/e95c6d57f7fbd7c226ec6ed9f8b3a968d94726a63d1a56254367ae893f47ae27/68747470733a2f2f73686570686572642e6465762f6769746875622f57797269486178696d75732f72656163747068702d656e762d6e6f7469666965722f636f7665726167652e737667)](https://shepherd.dev/github/WyriHaximus/reactphp-env-notifier)[![License](https://camo.githubusercontent.com/36761364a81aff2165a7028532531225facc9981f52291657190b903da33875e/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f72656163742d656e762d6e6f7469666965722f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/react-env-notifier)

Installation
============

[](#installation)

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/react-env-notifier

```

Usage
=====

[](#usage)

```
use WyriHaximus\React\Env\Notifier\EnvVar;
use WyriHaximus\React\Env\Notifier\Notifier;

Notifier::listen('NAME')->subscribe(function (EnvVar $envVar) {
    echo $envVar->name, ': ', $envVar->value, PHP_EOL; // Echo's NAME: VALUE
});

putenv('NAME=VALUE');
```

License
=======

[](#license)

The MIT License (MIT)

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

29

—

LowBetter than 60% of packages

Maintenance58

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.5% 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.

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

### Embed Badge

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

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

###  Alternatives

[vishnubob/wait-for-it

Pure bash script to test and wait on the availability of a TCP host and port

9.8k157.6k3](/packages/vishnubob-wait-for-it)[nodejs-php-fallback/nodejs-php-fallback

Allow you to call node.js module or scripts throught PHP and call a fallback function if node.js is not available

17454.7k8](/packages/nodejs-php-fallback-nodejs-php-fallback)

PHPackages © 2026

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