alireaza/dot-env-resolver-variables

This is Variables Resolver package for DotEnv.

1.3.0 2022-03-06 05:53 UTC

This package is auto-updated.

Last update: 2024-10-06 11:34:50 UTC


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.