coisa/dotenv

Autoload environment variables from a .env file

Maintainers

Details

github.com/coisa/dotenv

Source

Issues

Installs: 190

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/coisa/dotenv

2.0.1 2025-01-02 23:13 UTC

This package is auto-updated.

Last update: 2025-10-01 00:13:23 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.