dev-master
9999999-devLoads `env.json` file contents into $_ENV to populate the environment variables.
GPL-3.0 GPL
The Requires
- php >=5.2.0
The Development Requires
by Daniele Lenares
Wallogit.com
2017 © Pedro Peláez
Loads `env.json` file contents into $_ENV to populate the environment variables.
Loads env.json file contents into php $_ENV global variable., (*1)
Simply add the library to your composer.json, (*3)
composer require dnlnrs/envjson
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., (*4)
Example:, (*5)
use dnlrs\envjson\Loader; $loader = new Loader(__DIR__); $loader->load();
Now your $_ENV contaons the env.json contents., (*6)
Loads `env.json` file contents into $_ENV to populate the environment variables.
GPL-3.0 GPL