OmarHossamEldin / DotEnvLoader

used for reading env files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dot Env Loader

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

Authors

About

used for reading env files


Languages

Language:PHP 100.0%