Skip to content

cronfy/env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP environment

Provides framework agnostic access to environment data, that can be loaded as array.

Example:

// any environment loader can be used, we just need $environment to be an array
$environment = (new josegonzalez\Dotenv\Loader(__DIR__ . '/.env'))
    ->parse()
    ->toArray();

// load envirinment data
Env::load($environment);

// use environment variables
echo Env::get('MYSQL_USER');

// set variables
Env::set('MYSQL_USER', 'value');

About

PHP environment

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages