coisa/dotenv

Autoload environment variables from a .env file

1.1.0 2022-09-06 16:45 UTC

This package is auto-updated.

Last update: 2024-04-06 20:09:46 UTC


README

PHP Version Latest Version on Packagist Software License Total Downloads

Install

If you want always load the .env file in your project, run the following command:

$ composer require coisa/dotenv

If you just want to load the .env file in your project only for development, run the following command:

$ composer require --dev coisa/dotenv

Since this library uses the symfony/dotenv package, all the following files will be loaded:

  • .env
  • .env.dist
  • .env.local
  • .env.$APP_ENV
  • .env.$APP_ENV.local

The .env files must be in the root of your project.

Credits

License

Please see License File for more information.