Skip to content
/ envjson Public

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

License

Notifications You must be signed in to change notification settings

fatrex/envjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnvJson

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages