phpfit / env
Load .env file and put then on $_ENV global variable
1.0.0
2025-08-14 06:38 UTC
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.