PHPackages                             cwhite92/dotenvdiff - 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. cwhite92/dotenvdiff

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

cwhite92/dotenvdiff
===================

Easily see differences between two .env files

v1.0.0(5y ago)20374[1 issues](https://github.com/cwhite92/dotenvdiff/issues)MITPHPPHP &gt;7.3

Since Oct 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/cwhite92/dotenvdiff)[ Packagist](https://packagist.org/packages/cwhite92/dotenvdiff)[ RSS](/packages/cwhite92-dotenvdiff/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

[![dotenvdiff](https://user-images.githubusercontent.com/2497626/97647699-50696d80-1a29-11eb-978b-a02c17365a0e.jpg)](https://user-images.githubusercontent.com/2497626/97647699-50696d80-1a29-11eb-978b-a02c17365a0e.jpg)

dotenvdiff (`ded`) allows you to quickly compare the environment variable differences between two `.env` (or `.env.example`) files.

Installation
============

[](#installation)

Requirements:

- PHP 7.3 or greater

Require the tool globally via Composer:

```
composer global require cwhite92/dotenvdiff

```

If you don't have Composer's bin directory in your `$PATH`, now is the time to add it to `~/.bash_profile` or `~/.bashrc`:

```
export PATH=~/.composer/vendor/bin:$PATH

```

Usage
=====

[](#usage)

Simply run the `ded` command and give it the locations of the two `.env` files that you wish to compare:

```
ded /path/to/first/.env /path/to/second/.env

```

If you're running this in a Laravel project, you probably want to run it like this in your project's root directory:

```
ded .env.example .env

```

It will give an output similar to the below:

```
╔═════════════════════╤══════╗
║ .env.example        │ .env ║
╟─────────────────────┼──────╢
║ GITHUB_API_ENDPOINT │      ║
╚═════════════════════╧══════╝

```

In this instance, there is a new `GITHUB_API_ENDPOINT` environment variable that exists in `.env.example` but not in `.env`. Somebody on our team added it and forgot to tell us 🙂

License
=======

[](#license)

`cwhite92/dotenvdiff` is licensed under the MIT License (MIT). Please see the [license file](https://github.com/cwhite92/dotenvdiff/blob/main/LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

2022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a30b69accb959bc41d11290e5b8d803ddf115d3002f53a3148c0788abb5e11b?d=identicon)[cwhite92](/maintainers/cwhite92)

---

Tags

diffenvdotenv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cwhite92-dotenvdiff/health.svg)

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

###  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)[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)[sroze/companienv

Companion for .env files

245418.8k1](/packages/sroze-companienv)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4144.1k1](/packages/bnomei-kirby3-dotenv)

PHPackages © 2026

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