PHP code example of punktde / dotenv-adapter
1. Go to this page and download the library: Download punktde/dotenv-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
punktde / dotenv-adapter example snippets
bash
# echo FOO=foo > foo.env && echo FOO=bar > bar.env
# ENV_FILE=/tmp/foo.env:/tmp/bar.env php print_foo.php
bar
# FOO=baz ENV_FILE=/tmp/foo.env:/tmp/bar.env php print_foo.php
baz