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

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

dikki/dotenv
============

A simple dotenv library for PHP

2.0.0(1y ago)07366MITPHPPHP &gt;=8.1

Since Sep 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/namankumar80510/DikkiDotEnv)[ Packagist](https://packagist.org/packages/dikki/dotenv)[ Docs](https://dikki.website/components/dotenv)[ RSS](/packages/dikki-dotenv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (6)

Dikki DotEnv - Just Another DotEnv Component for PHP
====================================================

[](#dikki-dotenv---just-another-dotenv-component-for-php)

A simple dotenv component for PHP.

Usage
-----

[](#usage)

```
$dotenv = new Dikki\DotEnv\DotEnv(__DIR__, '.env'); // directory where .env is present; second argument is optional
$dotenv->load(); // load the vars from .env file

echo $_ENV['DEBUG']; // or getenv('DEBUG')
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

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

Every ~434 days

Total

2

Last Release

542d ago

Major Versions

1.0.0 → 2.0.02024-11-22

PHP version history (2 changes)1.0.0PHP 8.0 - 8.3

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/835b8766bb3b222a4f6dcc14eeafd4b7c09b1e1f50c20e3450a81905d099cb0a?d=identicon)[namankumar80510](/maintainers/namankumar80510)

---

Top Contributors

[![namankumar80510](https://avatars.githubusercontent.com/u/72571211?v=4)](https://github.com/namankumar80510 "namankumar80510 (2 commits)")

---

Tags

dotenv

### Embed Badge

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

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

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k226.7M2.3k](/packages/symfony-dotenv)[josegonzalez/dotenv

dotenv file parsing for PHP

2799.8M137](/packages/josegonzalez-dotenv)[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1594.6M34](/packages/helhum-dotenv-connector)[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)[jackiedo/dotenv-editor

The .env file editor tool for Laravel 5.8+

2041.2M31](/packages/jackiedo-dotenv-editor)

PHPackages © 2026

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