InitPHP DotENV

Environment variable loader for PHP 8 reading .env and .env.php with type coercion and ${VAR} interpolation.

PHP 8.2+ MIT v4.0.0

Installation

terminal
$ composer require initphp/dotenv

Requires PHP 8.2+. 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
4.0.0
Released
2026-11-22
Requires
PHP 8.2+ (^8.2)
License
MIT