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

ActiveLibrary

kielabokkie/dotenv-diff
=======================

Checks the differences between dotenv files

v1.0.0(10y ago)0181PHP

Since Aug 9Pushed 10y ago1 watchersCompare

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

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

Dotenv diff
===========

[](#dotenv-diff)

[![Author](https://camo.githubusercontent.com/9bd4336b32dfdf89be48fc04f379fcce3b7fadc848a9481232ad8e7c10ff47b8/687474703a2f2f696d672e736869656c64732e696f2f62616467652f62792d406b69656c61626f6b6b69652d6c69676874677265792e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/kielabokkie)[![Packagist Version](https://camo.githubusercontent.com/e2947ea80275bacabc9d8d9a3216ba9ec248030c34d106094714393c1d4ae401/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b69656c61626f6b6b69652f646f74656e762d646966662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kielabokkie/dotenv-diff)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Gitter](https://camo.githubusercontent.com/3460fd30f664105e995179e0f37ffa2d96cfbdd623691d46c240a49ff4438ba0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769747465722d6a6f696e253230636861742d3244434437362e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/kielabokkie/dotenv-diff)

This package automatically compares your `.env` an `.env.example` files and notifies you when there are differences.

Installation
------------

[](#installation)

The preferred way of installing this package is through composer:

```
composer require kielabokkie/dotenv-diff

```

Usage
-----

[](#usage)

Once the package is installed there are two ways of running the Dotenv diff automatically, either by using git hooks or composer scripts.

### Git hooks

[](#git-hooks)

First of all you can have the Dotenv diff run automatically when you do a `git pull`. To set this up you'll need to copy over the supplied `post-merge` git hook to your `.git/hooks` folder.

From the root of your project execute the following command:

```
cp vendor/kielabokkie/dotenv-diff/git/hooks/post-merge .git/hooks/

```

**Note: this will overwrite your existing `post-merge` hook so if you already have one you'll need to figure out how to combine multiple post merge hooks**

### Composer

[](#composer)

You can also set it up so it runs whenever you run composer commands like `composer install` or `composer update`.

All you need to do is call the `run` method from the scripts section of your `composer.json` file:

```
{
    "scripts": {
        "post-install-cmd": [
            "Kielabokkie\\DotenvDiff::run"
        ],
        "post-update-cmd": [
            "Kielabokkie\\DotenvDiff::run"
        ]
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~0 days

Total

2

Last Release

3935d ago

Major Versions

v0.1.0 → v1.0.02015-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/7824402e192649e35e5fa208e52a2bd8cab2afa343388b513f15a1bced95e600?d=identicon)[kielabokkie](/maintainers/kielabokkie)

---

Top Contributors

[![kielabokkie](https://avatars.githubusercontent.com/u/1221750?v=4)](https://github.com/kielabokkie "kielabokkie (12 commits)")

### Embed Badge

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

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

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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