Download the PHP package tekill/env-diff without Composer

On this page you can find all versions of the php package tekill/env-diff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package env-diff

EnvDiff

Latest Version on Packagist Build Status Coverage Status Quality Score

EnvDiff is tool to compare environment keys to find the difference between .env files and actualize them.

Example cast

Installation

Manual running

Actualize variables

Compare .env with .env.dist and add missing variables to .env file.

Compare .env with .env.example and add missing variables to .env file.

Compare .env-target with .env.example and add missing variables to .env-target file.

If you want to delete outdated values just run command with -k=false option.

Show differences

Command has same interface, arguments and options.

Compare .env with .env.dist and show differences between them.

Composer script

Add code block in composer.json:

The .env will then be created or updated by the composer script, to match the structure of the dist file .env.dist by asking you the missing variables.

By default, the dist file is assumed to be in the same place than the target .env file, suffixed by .dist. This can be changed in the configuration:

The script handler will ask you interactively for variables which are missing in the target env file, using the value of the dist file as default value. If composer is run in a non-interactive mode --no-interaction, the values of the dist file will be used for missing variables.

Warning: This handler will overwrite any comments or spaces into your target .env file so handle with care.

Managing multiple ignored files

The handler can manage multiple ignored files. To use this feature, the lf-env-diff extra should contain a JSON array with multiple configurations inside it instead of a configuration object:

Show difference

Add code block in composer.json:

This handler has same behavior as described before.

Git hooks

You can use Git hook that gets triggered after any 'git pull' whenever one of the files specified has changed. Useful to update any web application dependency or sync configuration.

Create post-merge hook in .git/hooks directory of your project:


All versions of env-diff with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
symfony/console Version ~2.8|~3.0|~4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tekill/env-diff contains the following files

Loading the files please wait ....