Ross ROSS = Recommend OSS · open-source software intelligence for agents

vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically. observed · 2026-08-28

github.com/vlucas/phpdotenv · PHP · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

88/100

  • Activity 99
  • Release rhythm 67
  • 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: 190
  • age_days: 4970
  • days_rel: 9
  • days_push: 9
  • n_releases_24m: 4

Full methodology

Adoption not part of the score

13550 stars · 663 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

PHP dotenv is a Composer library that loads environment variables from a `.env` file into `$_ENV`, `$_SERVER`, and optionally `getenv()`. It implements the twelve-factor app practice of keeping configuration such as credentials out of source code.

Use cases

  • load environment variables from a .env file in php
  • keep database credentials out of source code
  • configure a php app per deployment environment
  • avoid editing apache or nginx virtual hosts for config
  • share required env values with a .env.example file

When to choose

  • you build PHP applications and want twelve-factor style environment configuration
  • you need the same env vars set across Apache, Nginx, CLI, and PHP's built-in server
  • you want a battle-tested, widely adopted dotenv implementation for PHP

When to avoid

  • your runtime already loads .env files natively
  • you need secrets management with encryption or a vault rather than plain files
  • you are not working in PHP

Facets

library · maturity stable

configuration-management developer-tools developer-tools web-development backend php cli dotenv environment-variables twelve-factor composer web-server

1 source

Member repositories

RepositoryRoleHealth v2
vlucas/phpdotenvmain88

For agents

markdown · JSON · MCP: product_card(name="vlucas/phpdotenv")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem