PHPackages                             nuxed/environment - 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. nuxed/environment

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

nuxed/environment
=================

Nuxed Environment

v1.4.0(5y ago)2198MITHack

Since Oct 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nuxed/environment)[ Packagist](https://packagist.org/packages/nuxed/environment)[ RSS](/packages/nuxed-environment/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (6)Dependencies (6)Versions (9)Used By (0)

[![](https://avatars3.githubusercontent.com/u/45311177?s=200&v=4)](https://avatars3.githubusercontent.com/u/45311177?s=200&v=4)

[![Coding standards status](https://github.com/nuxed/environment/workflows/coding%20standards/badge.svg?branch=develop)](https://github.com/nuxed/environment/workflows/coding%20standards/badge.svg?branch=develop)[![Static analysis status](https://github.com/nuxed/environment/workflows/static%20analysis/badge.svg?branch=develop)](https://github.com/nuxed/environment/workflows/static%20analysis/badge.svg?branch=develop)[![Unit tests status](https://github.com/nuxed/environment/workflows/unit%20tests/badge.svg?branch=develop)](https://github.com/nuxed/environment/workflows/unit%20tests/badge.svg?branch=develop)[![Total Downloads](https://camo.githubusercontent.com/313f923d98c071440e1a1baf757a7e8abe7d909c20e9c2a6e2825d3c1410bdd8/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f656e7669726f6e6d656e742f642f746f74616c2e737667)](https://packagist.org/packages/nuxed/environment)[![Latest Stable Version](https://camo.githubusercontent.com/e9087ad196fb30c31c4548ef6193a07a00cdab75cda23c9d99cd44b86592466f/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f656e7669726f6e6d656e742f762f737461626c652e737667)](https://packagist.org/packages/nuxed/environment)[![License](https://camo.githubusercontent.com/3638433bf258edd2f74fb653e77d07e9ad22e99dd828560b7143238c7248cdbc/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f656e7669726f6e6d656e742f6c6963656e73652e737667)](https://packagist.org/packages/nuxed/environment)

Nuxed Environment
=================

[](#nuxed-environment)

The Nuxed Environment component provides functions that help you manage environment variables.

### Installation

[](#installation)

This package can be installed with [Composer](https://getcomposer.org).

```
$ composer require nuxed/environment
```

### Example

[](#example)

```
use namespace Nuxed\Environment;

async function main(): Awaitable {
  await Environment\load('.env');

  if(!Environment\contains('APP_MODE')) {
    Environment\put('APP_MODE', 'prod');
  }

  $mode = Environment\mode();
  switch($mode) {
    case Environment\Mode::Development:
      // Dev
    case Environment\Mode::Production:
      // Prod
    case Environment\Mode::Test:
      // Test
  }
}
```

---

### Security

[](#security)

For information on reporting security vulnerabilities in Nuxed, see [SECURITY.md](SECURITY.md).

---

### License

[](#license)

Nuxed is open-sourced software licensed under the MIT-licensed.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~30 days

Recently: every ~48 days

Total

8

Last Release

2184d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (22 commits)")[![lexidor](https://avatars.githubusercontent.com/u/31805625?v=4)](https://github.com/lexidor "lexidor (1 commits)")

---

Tags

dotenvdotenv-loaderdotenv-parserenvironmentenvironment-variableshackhacklanghhvmnuxed

### Embed Badge

![Health badge](/badges/nuxed-environment/health.svg)

```
[![Health](https://phpackages.com/badges/nuxed-environment/health.svg)](https://phpackages.com/packages/nuxed-environment)
```

###  Alternatives

[hhvm/hsl

The Hack Standard Library

1151.1M55](/packages/hhvm-hsl)

PHPackages © 2026

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