Composer script that manages your ignored parameters file
open sourceMITfree
ParameterHandler (incenteev/composer-parameter-handler) is a Composer script that creates or updates an ignored parameters file, such as a Symfony app's app/config/parameters.yml, on every composer install or update: it compares the file with its committed .dist template and asks for any missing parameters, keeping the values already set; in non-interactive runs it uses the dist values or environment variables. Parameters live under one top-level key in a YAML file, and other keys are copied unchanged. Christophe Coevoet (Incenteev) wrote it.
Problems it solves
- keep an untracked parameters.yml in sync with its .dist template in a Symfony project
- ask developers for missing config values when they run composer install
- generate a local config file from a committed template with Composer
Features
- builds the parameters file from its .dist template on composer install and update
- asks for missing parameters and keeps existing values
- copies other top-level keys unchanged
- parameters from environment variables for non-interactive deploys
