Important
Warning: work in progress. until complete, please use github.com/dotenvx/dotenvx directly.
see php examples
a better dotenv–from the creator of dotenv.
- run anywhere (cross-platform)
- multi-environment
- encrypted envs
Install and use it in code just like phpdotenv.
composer require dotenvx/phpdotenvxrequire 'vendor/autoload.php';
$dotenvx = Dotenvx\Dotenvx::createImmutable([__DIR__]);
$dotenvx->safeLoad();
