atournayre/dotenv-updater-bundle
The .env updater bundle helps managing .env.*.php files.
$ composer require atournayre/dotenv-updater-bundle
Enable the bundle
# config/bundles.php
return [
// ...
Atournayre\DotEnvUpdaterBundle\AtournayreDotEnvUpdaterBundle::class => ['all' => true],
// ...
];
Files .env.*.php are only updated, not created.
$ php bin/console dotenv:update
$ php bin/console dotenv:update .env.prod.php
Get list of variables and values defined in the .env.*.php file.
$ php bin/console dotenv:update --debug
$ php bin/console dotenv:update:element
$ php bin/console dotenv:update:element <.env.*.php>
How can I help you explore Laravel packages today?