alireaza / dot-env-resolver-variables
This is Variables Resolver package for DotEnv.
Fund package maintenance!
Linkedin
1.3.0
2022-03-06 05:53 UTC
Requires
- php: ^8.0.0
- alireaza/dot-env: 1.3.0
Requires (Dev)
- phpunit/phpunit: ^9.5.16
README
Install
Via Composer
$ composer require alireaza/dot-env-resolver-variables
Usage
use AliReaza\DotEnv\DotEnv; use AliReaza\DotEnv\Resolver\Variables; $env = new DotEnv('.env', [ new Variables($_SERVER + $_ENV), ]); $env->toArray(); // Array of variables defined in .env
License
The MIT License (MIT). Please see License File for more information.