wmde/configdiff

Name: configdiff

Owner: Wikimedia Deutschland e.V.

Description: Show differences between constants defined in PHP files

Created: 2015-10-09 15:07:25.0

Updated: 2015-10-09 15:08:11.0

Pushed: 2015-11-02 16:33:46.0

Homepage:

Size: 140

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

configdiff

configdiff is a command-line tool to compare two PHP configuration files containing configuration values defined as constants. One file being the configuration “template” or “distribution version”, the other being the concrete config file. configdiff checks whether both files contain the same constant names and outputs the missing and/or superfluous constant names.

The script should be called as part of a deployment to guard against missing configuration values, e.g. when new values have been added to the template as part of ongoing development.

Installation
composer require wmde/configdiff
Running the script

If the vendor/bin path (project-local or global) is in your $PATH, you can just call

configdiff TEMPLATE_FILE CONFIGURATION_FILE

Otherwise you call

php vendor/bin/configdiff.php TEMPLATE_FILE CONFIGURATION_FILE

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.