phpdotenv icon indicating copy to clipboard operation
phpdotenv copied to clipboard

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.

Results 18 phpdotenv issues
Sort by recently updated
recently updated
newest added

I'm confused about how this library should be used in the context of a project that uses (for example) Composer for dependancy management. Take the example of **ProjectA** which has...

to respect "copy" button that currently copies `$ composer require vlucas/phpdotenv` string ![image](https://github.com/vlucas/phpdotenv/assets/5278175/ac77f140-1f8f-40da-8753-73cbf64b6559)

Hi there! I'd love to have a way to do this: ```php $dotenv->notEmpty(['MY_FIRST_VAR', 'MY_SECOND_VAR']); ``` ...with the same behavior as `$dotenv->required`. The function is already there, but there doesn't seem...

After some hours spent on this https://stackoverflow.com/questions/79591956/aws-ecs-docker-automatic-environment-variables-injections/79591957#79591957 I think maybe usefull if phpdotenv when is simply "load" and some variable is not loaded because is already set on system, may...

Hi - In a terminal on linux with php 8.3 - the default Php ini has `variables_order = "GPCS"` (_'E' is not present_) so the shell env is not present/copied...

Getting a Fatal error related to unexpected whitespace: > Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Failed to parse dotenv file. Encountered unexpected whitespace at [localhost:"/Users/example/Library/Application Support/.../mysqld.sock"]. in ~/vendor/vlucas/phpdotenv/src/Parser/Parser.php:30 Not sure what is...

I am looking through dependencies and their licenses in one of our projects and noticed a potential inconsistency (we directly depend on `phpdotenv`): This package is licensed under the `BSD-3-Clause`...