Registry / config / symfony-dotenv

symfony-dotenv

JSON →
library8.1.0phppackagistunverified

Registers environment variables from a .env file

composer require symfony/dotenv
INSTALL
IMPORT
SIG · SYMFONY-DOTENV
S
symfony-dotenv
configphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dotenv
use Symfony\Component\Dotenv\Dotenv;

Load environment variables from a .env file

use Symfony\Component\Dotenv\Dotenv; $dotenv = new Dotenv(); $dotenv->load(__DIR__.'/.env');
Debug
Known issues
gotchaOverwrites existing environment variables by default
fix
Use overload(false) or check the override parameter
affects: *
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
40
OpenAI (training)
1
Resources
symfony-dotenv — pip install symfony-dotenv · libregistry