{"id":86319,"library":"vlucas-phpdotenv","title":"PHP dotenv","description":"Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.","status":"active","version":"5.6.3","language":"php","source_language":null,"source_url":"https://github.com/vlucas/phpdotenv","tags":["dotenv","environment","configuration","env"],"install":[{"cmd":"composer require vlucas/phpdotenv","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Dotenv","correct":"use Dotenv\\Dotenv;"}],"quickstart":{"code":"use Dotenv\\Dotenv;\n\n$dotenv = Dotenv::createImmutable(__DIR__);\n$dotenv->load();\n$dbHost = $_ENV['DB_HOST'];","lang":"php","description":"Load environment variables from a .env file."},"warnings":[{"fix":"Use `Dotenv::createImmutable()` to avoid overwriting.","message":"Using `createMutable()` can overwrite existing environment variables; prefer `createImmutable()`.","severity":"gotcha","affected_versions":">=5.0.0"}],"env_vars":null,"search_vec":"'automag':13 'configur':16 'dotenv':2,14 'env':7,10,17 'environ':4,15 'getenv':9 'load':3 'php':1 'server':12 'variabl':5","created_at":"2026-06-19T07:59:28.201959+00:00","updated_at":"2026-06-19T07:59:28.201959+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/vlucas/phpdotenv","github":"https://github.com/vlucas/phpdotenv","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}