coisa/dotenv
Autoload environment variables from a .env file
Maintainers
2.0.1
2025-01-02 23:13 UTC
Requires
- php: ^8.3
- psr/container: ^1.1 || ^2.0
- symfony/dotenv: ^7.1
Requires (Dev)
- coisa/php-cs-fixer: ^2.1
- friendsofphp/php-cs-fixer: ^3.4
- php-parallel-lint/php-parallel-lint: ^1.3
- phpunit/phpunit: ^9.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT dfb12febcca79ef9352f3abb329fe3807f706882
- Felipe Sayão Lobato Abreu <github.woop@felipeabreu.com.br>
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.
