PHP Dotenv Loads environment variables from .env to getenv(), $_ENV and $_SERVER automatically. Installation Installation is super-easy via Composer composer require envs/dotenv or add it by hand to your composer.json file. Usage