- Parse
.env
files and access them with$_ENV
.
composer req "noelclick/php-dotenv"
// Composer autoloader
require "./vendor/autoload.php";
// Load environment variables
(new \NoelClick\PhpDotEnv\DotEnv(__DIR__ . '/../.env'))
->load();
echo $_ENV["APP_NAME"];
All notable changes to this project will be documented in the CHANGELOG.md file.
© Copyright 2022 by Noel Kayabasli