5. Environment Variables
You can place environment-specific values in the
.env file at the Radar
project root. Radar will use this file at boot time to populate the
superglobal. You can also use
getenv() to get the same values.
web/index.php file uses the josegonzalez/dotenv library for the environment loading. You can control the loader behavior by setting options through the
Loader::load() call in
web/index.php. Please consult the php-dotenv documentation for more information.
Alternatively, if you have another loader you prefer to use, or none at all,
composer.json as you see fit.