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
use Quillstack\Dotenv\Dotenv;
(new Dotenv('.env'))->load();
env('APP_DEBUG'); // true, a boolean
env('APP_NAME'); // 'quillstack'
env('DB_PORT'); // 5432, a number
env('MISSING', 'a default'); // 'a default'
$host =
env('DB_PORT'); // 5432, still a number
env('PASSWORD'); // 'hunter2#7'
env('QUOTED'); // 'a # inside quotes'