nod/nod-environment

A php library for detecting and configuring environment through dotenv

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/nod/nod-environment

dev-master 2015-05-19 17:25 UTC

This package is not auto-updated.

Last update: 2025-09-27 23:15:42 UTC


README

A php library for detecting and configuring environment with dotenv

##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