Registry / config / josegonzalez-dotenv

josegonzalez-dotenv

JSON →
library4.0.0phppackagistunverified

Parses .env files for configuration.

composer require josegonzalez/dotenv
INSTALL
IMPORT
SIG · JOSEGONZALEZ-DOTEN
J
josegonzalez-dotenv
configphpv4.0.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.

Loader
use josegonzalez\Dotenv\Loader;

Loads environment variables from a .env file.

use josegonzalez\Dotenv\Loader; $loader = new Loader('/path/to/.env'); $loader->parse(); $loader->toEnv(); echo getenv('DB_HOST');
Debug
Known issues
breakingVersion 4.x requires PHP 8.0+
fix
Use version 3.x for PHP 7.x.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
OpenAI (training)
1
Resources
josegonzalez-dotenv — pip install josegonzalez-dotenv · libregistry