phpfit / env
Load .env file and put then on $_ENV global variable
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/phpfit/env
README
Load .env file and put them on global $_ENV and fetchable from getenv
function. That's it.
Installation
composer require phpfit/env
Usage
<?php use PhpFit\Env\Loader; $env_file = BASEPATH . '/.env'; Loader::load($env_file);
Exceptions
PhpFit\Env\EnvFileNotFoundException
500001/.env File not found__construct(?Throwable $previous = null)
License
The phpfit/env library is licensed under the MIT license. See License File for more information.