PHPackages                             janisto/yii-environment - 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. janisto/yii-environment

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

janisto/yii-environment
=======================

Environment class for Yii, used to set configuration for console and web apps depending on the server environment.

1.6.0(12y ago)26001public domainPHPPHP &gt;=5.1.0

Since Apr 16Pushed 12y ago2 watchersCompare

[ Source](https://github.com/janisto/yii-environment)[ Packagist](https://packagist.org/packages/janisto/yii-environment)[ Docs](https://github.com/janisto/yii-environment)[ RSS](/packages/janisto-yii-environment/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

yii-environment
===============

[](#yii-environment)

Predefine configurations for use in different environments, like development, testing, staging and production.

Changelog
---------

[](#changelog)

### v1.6.0

[](#v160)

- Fix: missing yiiSetPathOfAlias.
- Update examples.

### v1.5.0

[](#v150)

- Improve configuration merging.

### v1.4.0

[](#v140)

- Update Composer support.

### v1.3.0

[](#v130)

- Code refactor and structure change.
- Composer support.

### v1.2.0

[](#v120)

- Code refactor and DocBlock clean up.

### v1.1.0

[](#v110)

- Define only Yii framework path in configuration files instead of yii.php, yiit.php and yiilite.php.
- Better CSS styles for showDebug().

### v1.0.0

[](#v100)

- Initial version.

License
-------

[](#license)

yii-environment is free and unencumbered [public domain](http://unlicense.org/) software.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~114 days

Total

4

Last Release

4431d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d07415b7ffb6fd46509d1a3eb7873068b7fe5eca5da0cc2f0f6b4c3e66932ab3?d=identicon)[janisto](/maintainers/janisto)

---

Top Contributors

[![janisto](https://avatars.githubusercontent.com/u/387868?v=4)](https://github.com/janisto "janisto (22 commits)")

---

Tags

environmentextensionyii

### Embed Badge

![Health badge](/badges/janisto-yii-environment/health.svg)

```
[![Health](https://phpackages.com/badges/janisto-yii-environment/health.svg)](https://phpackages.com/packages/janisto-yii-environment)
```

###  Alternatives

[kartik-v/yii2-icons

Set of icon frameworks for use in Yii Framework 2.0

73970.3k34](/packages/kartik-v-yii2-icons)[evgeniyrru/yii2-slick

Yii2 extension for Slick Carousel

22182.1k3](/packages/evgeniyrru-yii2-slick)[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)

PHPackages © 2026

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