2017 © Pedro PelĂĄez
 

library nod-environment

A php library for detecting and configuring environment through dotenv

image

nod/nod-environment

A php library for detecting and configuring environment through dotenv

  • Tuesday, May 19, 2015
  • by JacopKane
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NOD-php-environment

A php library for detecting and configuring environment with dotenv, (*1)

Installation:

With Composer:
composer require nod/environment

Usage

//First include composer autoloader if it's not already included
$loader = require_once 'vendor/autoload.php';

//Get Instance
use NOD\Environment;
$env = new Nod\Environment;

//To test a value
echo $env->getEnv(name);
//or
echo getenv(name);

//EXCLUDE variables filtered JSON
echo $env->toJson();

TODOs

  • Imrove documentation
  • Add optional hostname check to detection

Contact:

hey@nod.st, (*2)

The Versions

19/05 2015

dev-master

9999999-dev

A php library for detecting and configuring environment through dotenv

  Sources   Download

MIT

The Requires

 

php configuration environment env dotenv