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

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

nod/nod-environment
===================

A php library for detecting and configuring environment through dotenv

1271PHP

Since May 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/NOD-studios/NOD-php-environment)[ Packagist](https://packagist.org/packages/nod/nod-environment)[ RSS](/packages/nod-nod-environment/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

NOD-php-environment
===================

[](#nod-php-environment)

A php library for detecting and configuring environment with dotenv

\##Installation: #####With [Composer](https://getcomposer.org):

```
composer require nod/environment
```

\##Usage

```
//First include composer autoloader if it's not already included
$loader = require_once 'vendor/autoload.php';

//Get Instance
use NOD\Environment;
$env = new Nod\Environment;

//To test a value
echo $env->getEnv(name);
//or
echo getenv(name);

//EXCLUDE variables filtered JSON
echo $env->toJson();
```

\##TODOs

- Imrove documentation
- Add optional hostname check to detection

\##Contact:

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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/68406?v=4)[Furkan Tunalı](/maintainers/JacopKane)[@JacopKane](https://github.com/JacopKane)

---

Top Contributors

[![JacopKane](https://avatars.githubusercontent.com/u/68406?v=4)](https://github.com/JacopKane "JacopKane (12 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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