piwikpro / env-params-builder-bundle
Helps to build parameters.yml file based on environment variables
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 16 890
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 15
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- symfony/framework-bundle: ~3.0
Requires (Dev)
- behat/behat: ^3.2
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/symfony2-extension: ^2.1
- friendsofphp/php-cs-fixer: ^2.0
- phing/phing: 3.0.x-dev
- phpmd/phpmd: ^2.4
- phpunit/phpunit: ~5.4
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ^2.0
- symfony/symfony: ~3.0
This package is not auto-updated.
Last update: 2019-10-14 08:24:52 UTC
README
Bundle helps to create parameters.yml file based on environment variables. It's really popular scenario especially when running a symfony based application using Docker.
How to install ?
Bundle can be easily installed using composer:
composer require "piwikpro/env-params-builder-bundle:~0.1"
Next, you have to register the bundle in AppKernel:
class AppKernel extends Kernel { public function registerBundles() { return [ new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), ... new \PiwikPRO\EnvParamsBuilderBundle\PiwikPROEnvParamsBuilderBundle() ... ]; } }
That's all. Now to create parameters.yml file use following command:
php bin/console env-params:build > app/config/parameters.yml
Configuration
By default, bundle is looking for symfony specific environment variables (read more about it here), but it's possible to change it:
env_params_builder: prefix: "MY_PREFIX" # by default SYMFONY delimiter: "-" # by default __
Change-log
- 0.1.0
- initial version