InitPHP DotENV
Environment variable loader for PHP 8 reading .env and .env.php with type coercion and ${VAR} interpolation.
Installation
terminal
$ composer require initphp/dotenv
Requires PHP 8.0+. The package is published on
Packagist as
initphp/dotenv.
What DotENV does
Environment variable loader for PHP 8 — reads .env and .env.php with type coercion and ${VAR} interpolation, so configuration stays out of version control.
Package details
- Composer package
- initphp/dotenv
- Latest version
- 3.1.0
- Released
- 2026-06-21
- Requires
- PHP 8.0+ (>=8.0)
- License
- MIT