PHP code example of gullevek / dotenv

1. Go to this page and download the library: Download gullevek/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/ */

    

gullevek / dotenv example snippets



gullevek\dotEnv\DotEnv::readEnvFile(__DIR__);

$_ENV["FOO"];
$_ENV["FOOBAR"];
$_ENV["SecitonA.FOO"];
$_ENV["SecitonA.FOOBAR"];