PHPackages                             patinthehat/phpdotenv - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. patinthehat/phpdotenv

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

patinthehat/phpdotenv
=====================

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

v2.4.0(9y ago)011BSD-3-Clause-AttributionPHP &gt;=5.3.9

Since Jan 23Compare

[ Source](https://github.com/patinthehat/phpdotenv)[ Packagist](https://packagist.org/packages/patinthehat/phpdotenv)[ RSS](/packages/patinthehat-phpdotenv/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (1)Versions (27)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/patinthehat/phpdotenv).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity68

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Recently: every ~35 days

Total

25

Last Release

3543d ago

Major Versions

v1.1.0 → v2.0.02015-05-29

v1.1.1 → v2.0.12015-05-30

PHP version history (2 changes)1.0.0PHP &gt;=5.3.2

v2.1.0PHP &gt;=5.3.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5508707?v=4)[Patrick Organ](/maintainers/patinthehat)[@patinthehat](https://github.com/patinthehat)

---

Tags

environmentenvdotenv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/patinthehat-phpdotenv/health.svg)

```
[![Health](https://phpackages.com/badges/patinthehat-phpdotenv/health.svg)](https://phpackages.com/packages/patinthehat-phpdotenv)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k226.7M2.3k](/packages/symfony-dotenv)[diarmuidie/envpopulate

Tool to interactively populate a `.env` file based on an `.env.example` file whenever Composer installs or updates.

1892.0k](/packages/diarmuidie-envpopulate)[zepgram/magento-dotenv

Simple autoloader to integrate the Symfony Dotenv component into Magento2

1371.3k](/packages/zepgram-magento-dotenv)[nystudio107/dotenvy

Speed up your production sites by ditching .env for key/value variable pairs as Apache, Nginx, and shell equivalents.

326.9k](/packages/nystudio107-dotenvy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
