Download the PHP package rozehnal/environment-parameters without Composer
On this page you can find all versions of the php package rozehnal/environment-parameters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rozehnal/environment-parameters
More information about rozehnal/environment-parameters
Files in rozehnal/environment-parameters
Package environment-parameters
Short Description Composer script building your detached parameters for deploying the app. Built above the great incenteev/composer-parameter-handler library.
License MIT
Homepage https://github.com/rozehnal/environment-parameters
Informations about the package environment-parameters
Composer script building your detached parameters for deploying your app
This tool allows you to manage app parameters for deployment in separate repositories. The repo is fully compatible with all parameters from https://github.com/Incenteev/ParameterHandler.
Run
composer run-script build --no-interaction -- --env=prod
Usage
Add the following in your root composer.json file:
The build/parameters.yml
will then be created
composer script, to match the structure of the dist file parameters.yml
by asking you the missing parameters.
Supported syntax
- Fully compatible with https://github.com/Incenteev/ParameterHandler
"%env(ENV_VARIABLE)%"
syntax in*.yml
filesimports
in*.yml
files
Hierarchical structure
composer run-script build --no-interaction -- --env=test/test01
Files are searched in order test/test01/key.p12
, test/key.p12
and test/test01/parameters.yml
, test/parameters.yml
. It means you are able to build configuration
on inheritence from parent folders with overriding details in children folders. Applicable for both -
files and *.yml
files.
Output formats [yaml, php-constants]
Default output format is well-knownyaml
file. Currently there is possible to create php
file where each parameter defines constant - define(key, value)
.
Example
https://github.com/rozehnal/environment-parameters-test
Todo
All versions of environment-parameters with dependencies
incenteev/composer-parameter-handler Version ~2.0
symfony/yaml Version ~2.3|~3.0
symfony/filesystem Version ~2.6|~3.2