PHP code example of flux-eco / dot-env
1. Go to this page and download the library: Download flux-eco/dot-env 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/ */
flux-eco / dot-env example snippets
co\DotEnv\Api::new()->load(__DIR__);
echo getenv('STORAGE_USER').PHP_EOL;
echo getenv('STORAGE_PASSWORD').PHP_EOL;
otEnv\loadDotEnv(__DIR__);
echo getenv('STORAGE_USER').PHP_EOL;
echo getenv('STORAGE_PASSWORD').PHP_EOL;