reneknox / dot-env-loader
used for reading env files
0.0.4
2024-01-13 22:52 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-06-14 02:10:04 UTC
README
used for reading env files
Install & Dependence
- php unit
To run test
composer test
Usage
$path = 'test/'; $file = '.env'; $envLoader = new EnvLoader($path $file); $data = $envLoader->get_data(); // or $data = EnvLoader::load_data($path, $file);
Directory structure
├───Samples
│ └───.env.example
├───src
│ ├───Exceptions
│ └───File
├───tests
│ └───Unit
Tested Platform
-
software
OS: Ubuntu - Windows 10
License
MIT