Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alireaza/dot-env-resolver-variables

Dot Env Resolver Variables
https://github.com/alireaza/dot-env-resolver-variables

composer dot-env dotenv env environment php

Last synced: 29 days ago
JSON representation

Dot Env Resolver Variables

Awesome Lists containing this project

README

        

# Dot Env Resolver Variables

## Install

Via Composer
```bash
$ composer require alireaza/dot-env-resolver-variables
```

## Usage

```php
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](LICENSE) for more information.