PHP code example of quillstack / dotenv
1. Go to this page and download the library: Download quillstack/dotenv 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/ */
quillstack / dotenv example snippets
$dotenv = new Dotenv('.env');
$dotenv->load();
if (env('APP_DEBUG')) {
echo 'Debug mode';
}
if (env('APP_DEBUG', false)) {
echo 'Debug mode';
}
$dbHost =