2017 © Pedro Peláez
 

library dotenv-diff

Checks the differences between dotenv files

image

kielabokkie/dotenv-diff

Checks the differences between dotenv files

  • Monday, August 10, 2015
  • by kielabokkie
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Dotenv diff

Author Packagist Version Software License Gitter, (*1)

This package automatically compares your .env an .env.example files and notifies you when there are differences., (*2)

Installation

The preferred way of installing this package is through composer:, (*3)

composer require kielabokkie/dotenv-diff

Usage

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

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., (*5)

From the root of your project execute the following command:, (*6)

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, (*7)

Composer

You can also set it up so it runs whenever you run composer commands like composer install or composer update., (*8)

All you need to do is call the run method from the scripts section of your composer.json file:, (*9)

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

The Versions

10/08 2015

dev-master

9999999-dev

Checks the differences between dotenv files

  Sources   Download

The Requires

 

by Wouter Peschier

10/08 2015

v1.0.0

1.0.0.0

Checks the differences between dotenv files

  Sources   Download

The Requires

 

by Wouter Peschier

09/08 2015

v0.1.0

0.1.0.0

Checks the differences between dotenv files

  Sources   Download

The Requires

 

by Wouter Peschier