PHP code example of gokhankurtulus / dotenv
1. Go to this page and download the library: Download gokhankurtulus/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/ */
gokhankurtulus / dotenv example snippets
use Dotenv\Dotenv;
$dotenv = new Dotenv('.env');
// This will cause an \Exception because VERSION is not set on the environment file and raiseError is true by default.
$dotenv->LE_KEY']; // Output: mykey