PHPackages                             nichin79/dotenv - 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. nichin79/dotenv

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

nichin79/dotenv
===============

Read and use .env files

v1.0.0(2y ago)0511PHP

Since Jun 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nichin79/DotEnv)[ Packagist](https://packagist.org/packages/nichin79/dotenv)[ RSS](/packages/nichin79-dotenv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

.env
====

[](#env)

**Example**

```
require_once __DIR__ . '/../vendor/autoload.php';

(new Nichin79\DotEnv\DotEnv(__DIR__ . '/../.env'))->load();
$config = [
  'dsn' => $_ENV['DB_DSN'],
  'user' => $_ENV['DB_USER'],
  'pass' => $_ENV['DB_PASS'],
];

var_dump($config);
var_dump($_ENV);
var_dump($_SERVER);

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

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

Unknown

Total

1

Last Release

1075d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b7e9e6586d0afb15e1d856e62c0f7ab2d2580360998159276d473eb134750dd?d=identicon)[nichin79](/maintainers/nichin79)

---

Top Contributors

[![nichin79](https://avatars.githubusercontent.com/u/134265991?v=4)](https://github.com/nichin79 "nichin79 (6 commits)")

### Embed Badge

![Health badge](/badges/nichin79-dotenv/health.svg)

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

PHPackages © 2026

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