You probably get your environment variables using built-in PHP functions such as getenv or $_ENV, but did you know that you can do it in an elegant way getting the value of an environment variable in the properly PHP data type with the powerful library? If you are curious, just read how this energetic library can help you in your daily development workflow.
Note that in this article we'll use a famous library to load environment variables from an external file, this library is vlucas/phpdotenv.
Then, firstly, you need to install the dependencies. To do it, simply type this in your terminal:
$ composer require vlucas/phpdotenv