Version 1.0.3
·
4 commits
to master
since this release
v1.0.3
Changes
- replace
file()withfopen()for improved performance when reading env files - The constructor now accepts three parameters:
array|string|null$filestring|null$envKeybool$overwrite
- improved
loadmethod:- On production mode, env files are loaded only once (for performance)
Added
- New method
has()to check for the existence of an env variable:
$dotenv->has('APP_LOCALE');- You can now control whether to overwrite existing environment variables when loading multiple env files, via the $overwrite parameter.