PHPackages                             romanzipp/laravel-env-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. romanzipp/laravel-env-diff

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

romanzipp/laravel-env-diff
==========================

Create a visual Diff of .env and .env.example files

2.2.1(3y ago)824.9k↓25%3MITPHPPHP ^7.2|^8.0

Since Aug 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/romanzipp/Laravel-Env-Diff)[ Packagist](https://packagist.org/packages/romanzipp/laravel-env-diff)[ GitHub Sponsors](https://github.com/romanzipp)[ RSS](/packages/romanzipp-laravel-env-diff/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (23)Used By (0)

Laravel Env Diff
================

[](#laravel-env-diff)

[![Latest Stable Version](https://camo.githubusercontent.com/c7ada70f703f0530a3ef3fb0170dcadc889193a0916755c0d347580857dceb4d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6d616e7a6970702f6c61726176656c2d656e762d646966662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romanzipp/laravel-env-diff)[![Total Downloads](https://camo.githubusercontent.com/24a14092ff79ca21cc6db332c7017953ccde6072cf8a87825c3d17241b39e38a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6d616e7a6970702f6c61726176656c2d656e762d646966662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romanzipp/laravel-env-diff)[![License](https://camo.githubusercontent.com/ab3085c4dae14dce9b41b2f374cf4f9c572f441a82f5272349a28bcf8cb1c6fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f6d616e7a6970702f6c61726176656c2d656e762d646966662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romanzipp/laravel-env-diff)[![GitHub Build Status](https://camo.githubusercontent.com/69a7ffb173b942e956c19c112c0abb0cc1766838e87dbe09747e8783c96d460a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726f6d616e7a6970702f4c61726176656c2d456e762d446966662f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/romanzipp/Laravel-Env-Diff/actions)

Create a visual Diff of .env and .env.example files

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

[](#installation)

```
composer require romanzipp/laravel-env-diff

```

**If you use Laravel 5.5+ you are already done, otherwise continue.**

Add Service Provider to your `app.php` configuration file:

```
romanzipp\EnvDiff\Providers\EnvDiffProvider::class,
```

Configuration
-------------

[](#configuration)

Copy configuration to config folder:

```
$ php artisan vendor:publish --provider="romanzipp\EnvDiff\Providers\EnvDiffProvider"

```

```
return [
    /*
     * Specify all environment files that should be compared.
     */
    'files'         => [
        '.env',
        '.env.example',
    ],

    /*
     * The base path to look for environment files.
     */
    'path'          => base_path(),

    /*
     * User colors when printing console output.
     */
    'use_colors'    => true,

    /*
     * Hide variables that exist in all .env files.
     */
    'hide_existing' => true,

    /*
     * Show existing env values instead of y/n.
     */
    'show_values'   => false,
];
```

Usage
-----

[](#usage)

```
$ php artisan env:diff
              {files? : Specify environment files, overriding config}
              {--values : Display existing environment values}';

```

Example
-------

[](#example)

```
$ php artisan env:diff .env,.env.second

```

[![Preview](https://raw.githubusercontent.com/romanzipp/Laravel-Env-Diff/master/preview-default.png)](https://raw.githubusercontent.com/romanzipp/Laravel-Env-Diff/master/preview-default.png)

```
$ php artisan env:diff .env,.env.second --values

```

[![Preview](https://raw.githubusercontent.com/romanzipp/Laravel-Env-Diff/master/preview-values.png)](https://raw.githubusercontent.com/romanzipp/Laravel-Env-Diff/master/preview-values.png)

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity77

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

Recently: every ~139 days

Total

22

Last Release

1189d ago

Major Versions

0.0.1 → 1.0.02018-09-14

1.2.2 → 2.0.02020-03-06

PHP version history (3 changes)0.0.1PHP &gt;=7.0

1.2.0PHP ^7.2

2.0.5PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/309ea408cc915d1d37b370796df57a24ec31f0b65da69f69c650c8983f9c33a6?d=identicon)[romanzipp](/maintainers/romanzipp)

---

Top Contributors

[![romanzipp](https://avatars.githubusercontent.com/u/11266773?v=4)](https://github.com/romanzipp "romanzipp (83 commits)")

---

Tags

laravelphpphp7showcase

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/romanzipp-laravel-env-diff/health.svg)

```
[![Health](https://phpackages.com/badges/romanzipp-laravel-env-diff/health.svg)](https://phpackages.com/packages/romanzipp-laravel-env-diff)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[livewire/flux

The official UI component library for Livewire.

9475.0M86](/packages/livewire-flux)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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