This is part 6 of a series introducing professional PHP development in 2024, where we'll use environment variables to connect to a database, and look into how to use Environment variables throughout our container.
00:00 Intro
00:28 Database in Docker Compose setup
02:03 Testing database connection
02:56 Extending docker image
04:02 getenv
05:03 .env file
06:54 Loading env files
07:30 strict env keys
08:32 The Environment class
09:24 Adding Environment to the container
10:15 parsing the .env file
11:49 using the Environment class
12:44 using the environment variables
13:35 Outro