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-12-06 11:53:07 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.