2017 © Pedro Peláez
 

library envjson

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

image

dnlnrs/envjson

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

  • Wednesday, December 20, 2017
  • by dnlnrs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EnvJson

Loads env.json file contents into php $_ENV global variable., (*1)

Build Status, (*2)

Installation

Simply add the library to your composer.json, (*3)

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., (*4)

Example:, (*5)

use dnlrs\envjson\Loader;

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

Now your $_ENV contaons the env.json contents., (*6)

Changelog

The Versions

20/12 2017

dev-master

9999999-dev

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

  Sources   Download

GPL-3.0 GPL

The Requires

  • php >=5.2.0

 

The Development Requires

by Daniele Lenares

07/12 2017

0.1.0

0.1.0.0

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

  Sources   Download

GPL-3.0

The Requires

  • php >=5.2.0

 

by Daniele Lenares