PHPackages                             brixms/yii2-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. brixms/yii2-phpdotenv

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

brixms/yii2-phpdotenv
=====================

Yii2 extension for .env / Dotenv / env() / getenv()

v0.0.1(9y ago)0416unlicensePHP

Since Dec 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/brixms/yii2-phpdotenv)[ Packagist](https://packagist.org/packages/brixms/yii2-phpdotenv)[ RSS](/packages/brixms-yii2-phpdotenv/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

yii2-phpdotenv
==============

[](#yii2-phpdotenv)

Package to automatically include .env via `vlucas/phpdotenv` in your yii2 application.

installation
============

[](#installation)

1. `composer require brixms/yii2-phpdotenv`
2. edit `index.php` or your `yii` entry points to include `Dotenv` (after autoload has been required):

`(new \Dotenv\Dotenv("your full .env file location"))->overload();`

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

3528d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5098145?v=4)[somegithubuser](/maintainers/somegithubuser)[@somegithubuser](https://github.com/somegithubuser)

---

Top Contributors

[![webremote](https://avatars.githubusercontent.com/u/15063100?v=4)](https://github.com/webremote "webremote (8 commits)")

---

Tags

envdotenvyii2phpdotenvgetenv

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k65](/packages/skeeks-cms)[beebmx/kirby-env

Enable env variables to Kirby

2141.2k4](/packages/beebmx-kirby-env)[johannschopplich/kirby-helpers

Environment, SEO, and build utilities for Kirby CMS

318.0k](/packages/johannschopplich-kirby-helpers)

PHPackages © 2026

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