Cmd/Ctrl + K

Getting started

codemonster-ru/env loads .env files and reads environment values with optional casting.

Basic usage

Load environment variables before reading them through the package API.

Use safeLoad() when the file may be missing. Use load() when missing or invalid files should fail the boot process.