symfony/dotenv
Registers environment variables from a .env file observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 3520
- days_rel: 35
- days_push: 35
- n_releases_24m: 42
Adoption not part of the score
3788 stars · 28 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Symfony component that parses .env files and registers the variables they contain into PHP's $_ENV and $_SERVER superglobals. It supports loading multiple files, environment-specific overrides like .env.local, and overloading existing variables.
Use cases
- load environment variables from a .env file in PHP
- manage per-environment config with .env.local overrides
- parse dotenv files in a PHP project without Symfony framework
- keep secrets and app config out of the codebase
- load multiple env files with precedence in PHP
When to choose
- you run a PHP application and want standard .env file support
- you need environment-specific overrides like .env.local or .env.dev
- you want a small, battle-tested component used by major PHP projects like Shopware and PrestaShop
When to avoid
- your runtime platform already loads .env files natively (e.g. Docker, Kubernetes, some hosts)
- you need encrypted or remote secret management rather than plain .env files
- you work outside PHP
Facets
library · maturity stable
configuration-management parser developer-tools web-development backend php cli dotenv environment-variables symfony-component env-files composer
7 sources
- readme: https://github.com/symfony/dotenv · fetched 2026-08-28 · 4ef37a819aa1
- homepage: https://symfony.com/dotenv · fetched 2026-08-29 · 50c2e8f89756
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/configuration.html · fetched 2026-08-29 · 9146f9440156
- site_page: https://symfony.com/projects/phpmyfaq · fetched 2026-08-29 · 811068e1487f
- site_page: https://symfony.com/releases · fetched 2026-08-29 · f109a7a4a5da
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · da84802d18f3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/dotenv | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem