dnlnrs / envjson
Loads `env.json` file contents into $_ENV to populate the environment variables.
0.1.0
2017-12-07 15:16 UTC
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2025-06-22 06:51:17 UTC
README
Loads env.json
file contents into php $_ENV
global variable.
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.