Add .env file support
Closed this issue · 4 comments
dynasource commented
Moved from yiisoft/yii2#13602
Original text:
I suggest to add .env support, like it's done in Laravel. With it it's much easier to make a basic
config of the app/switching between environments, etc.
luislobo commented
@cebe #105 is a different issue. That one is about handing environment in basic just like it is done in advanced. This other one is for supporting the use of .env files for setting environment variables, as discussed in yiisoft/yii2#13602
schmunk42 commented
For reference ... We're using this extension for some years now: https://github.com/vlucas/phpdotenv
Usage examples:
samdark commented
Won't be added to 2.0.14. Planned for 2.1.