PHPackages                             dotenvx/phpdotenvx - 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. dotenvx/phpdotenvx

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

dotenvx/phpdotenvx
==================

\[dotenvx.com\] a better dotenv–from the creator of `dotenv`

v0.0.1(1y ago)012BSD-3-ClausePHPPHP ^7.1.3 || ^8.0

Since Oct 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/dotenvx/phpdotenvx)[ Packagist](https://packagist.org/packages/dotenvx/phpdotenvx)[ RSS](/packages/dotenvx-phpdotenvx/feed)WikiDiscussions main Synced 1mo ago

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

Important

Warning: work in progress. until complete, please use [github.com/dotenvx/dotenvx](https://github.com/dotenvx/dotenvx) directly.

see [php examples](https://dotenvx.com/docs/languages/php)

---

[![dotenvx](https://camo.githubusercontent.com/8d0f016d1225723af881708f66814e393955f264ee3be340e4b1820ec44040d0/68747470733a2f2f646f74656e76782e636f6d2f6265747465722d62616e6e65722e706e67)](https://dotenvx.com)

*a better dotenv*–from the creator of [`dotenv`](https://github.com/motdotla/dotenv).

- run anywhere (cross-platform)
- multi-environment
- encrypted envs

### Quickstart [![PHP version](https://camo.githubusercontent.com/bcf4389a9985ad8ade1d4ac037afdfcadab9692cff12916e792819650261c1d8/68747470733a2f2f62616467652e667572792e696f2f70682f646f74656e7678253246706870646f74656e76782e737667)](https://badge.fury.io/ph/dotenvx%2Fphpdotenvx)

[](#quickstart-)

Install and use it in code just like `phpdotenv`.

```
composer require dotenvx/phpdotenvx
```

```
require 'vendor/autoload.php';

$dotenvx = Dotenvx\Dotenvx::createImmutable([__DIR__]);
$dotenvx->safeLoad();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

576d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50d3ae43a2cd5ed130f7074523ebed9135b598e4e40701e2aebd12aaca6e3c7f?d=identicon)[dotenv](/maintainers/dotenv)

---

Top Contributors

[![motdotla](https://avatars.githubusercontent.com/u/3848?v=4)](https://github.com/motdotla "motdotla (3 commits)")

---

Tags

dotenvxenvironmentenvdotenvconfigurationsenvironment variablesdotenv-vaultdotenvx

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dotenvx-phpdotenvx/health.svg)

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

###  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)
