.env File

Environment files are a way to store and access environment variables, and store them in a file, not in the OS environment.

The env file holds a set of environment variables and their values. It is loaded instead of the actual operating system value. That way, there may be several sets of values for the variables, each of them stored in a distinct file, and accessed via the file name.

Documentation

See also Mastering .env Files in PHP: Concepts, Tools, and Best Practices, What is .env? and Dotenvx.

Related : Environment Variables, Environment

Related packages : vlucas/phpdotenv, symfony/dotenv