Skip to content

A class for detecting and configuring environment with dotenv

License

Notifications You must be signed in to change notification settings

NOD-studios/NOD-php-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOD-php-environment

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: [email protected]

About

A class for detecting and configuring environment with dotenv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages