PHP code example of devop-core / dotenv
1. Go to this page and download the library: Download devop-core/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/ */
devop-core / dotenv example snippets
php
Op\Core\DotEnv())->load('.env')->toEnv();
var_dump([env('APP_DEBUG'), getenv('APP_DEBUG'), env('APP_NAME')]);