bnomei/kirby3-dotenv

View on GitHub
global.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

@include_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/classes/DotEnv.php';

if (! function_exists('loadenv')) {
    function loadenv(array $options = []): bool
    {
        return \Bnomei\DotEnv::load($options, canUseKirbyOptions: false);
    }
}

if (! function_exists('env')) {
    function env(string $env, mixed $default = null): mixed
    {
        return \Bnomei\DotEnv::getenv($env, $default);
    }
}