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

1076d 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)
```

###  Alternatives

[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[roave/psalm-html-output

Psalm HTML Output

23312.0k1](/packages/roave-psalm-html-output)[pear/system_daemon

A port of the PEAR class to create Daemons with pure PHP

11139.9k1](/packages/pear-system-daemon)[mateffy/laravel-codebase-mcp

An MCP server to give Cursor, Aider, etc. the ability to introspect your Laravel codebase directly, by querying for your models, views, routes and classes without raw file search.

201.1k](/packages/mateffy-laravel-codebase-mcp)

PHPackages © 2026

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