dnlnrs/envjson

Loads `env.json` file contents into $_ENV to populate the environment variables.

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/dnlnrs/envjson

0.1.0 2017-12-07 15:16 UTC

This package is not auto-updated.

Last update: 2025-10-26 08:27:52 UTC


README

Loads env.json file contents into php $_ENV global variable.

Build Status

Installation

Simply add the library to your composer.json

composer require dnlnrs/envjson

Usage

Create a new instance of Loader class, passing the path of the env.json file and the name (default to env.json) and then call the load method.

Example:

use dnlrs\envjson\Loader;

$loader = new Loader(__DIR__);
$loader->load();

Now your $_ENV contaons the env.json contents.

Changelog