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

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

matacms/matacms-environment
===========================

Manages environment (DRAFT, LIVE) for MATACMS

1.0.8.0-alpha(6y ago)02.6k[1 issues](https://github.com/qi-interactive/matacms-environment/issues)1MITPHP

Since May 18Pushed 6y ago4 watchersCompare

[ Source](https://github.com/qi-interactive/matacms-environment)[ Packagist](https://packagist.org/packages/matacms/matacms-environment)[ RSS](/packages/matacms-matacms-environment/feed)WikiDiscussions development Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (19)Used By (1)

MATA CMS Environment
====================

[](#mata-cms-environment)

[![MATA CMS Module](https://camo.githubusercontent.com/c0401b91459d20973612c632a7f5e84f9cf5f5f7cebec1d6c200c7e26dc93cd7/68747470733a2f2f73332d65752d776573742d312e616d617a6f6e6177732e636f6d2f71692d696e7465726163746976652f6173736574732f6d6174612d636d732f676561722d6d6174612d6c6f676f25343032782e706e67)](https://camo.githubusercontent.com/c0401b91459d20973612c632a7f5e84f9cf5f5f7cebec1d6c200c7e26dc93cd7/68747470733a2f2f73332d65752d776573742d312e616d617a6f6e6177732e636f6d2f71692d696e7465726163746976652f6173736574732f6d6174612d636d732f676561722d6d6174612d6c6f676f25343032782e706e67)

Environment module manages environment (DRAFT, LIVE) for entities.

Installation
------------

[](#installation)

- Add the module using composer:

```
"matacms/matacms-environment": "~1.0.0"
```

- Run migrations

```
php yii migrate/up --migrationPath=@vendor/matacms/matacms-environment/migrations

```

Changelog
---------

[](#changelog)

1.0.6.4-alpha, September 7, 2016
--------------------------------

[](#1064-alpha-september-7-2016)

- Added migration (alter DocumentId from 64 to 128 characters)

1.0.6.3-alpha, May 13, 2016
---------------------------

[](#1063-alpha-may-13-2016)

- Updates for matacms\\environment\\helpers\\Html

1.0.6.2-alpha, November 30, 2015
--------------------------------

[](#1062-alpha-november-30-2015)

- Bug fix

1.0.6.1-alpha, October 8, 2015
------------------------------

[](#1061-alpha-october-8-2015)

- Changed ActiveQuery::EVENT\_BEFORE\_PREPARE\_STATEMENT to run only for models with EnvironmentBehavior

1.0.6-alpha, August 21, 2015
----------------------------

[](#106-alpha-august-21-2015)

- Added "Submit for review" button if user doesn't have any roles (rbac) assigned
- Added sending notification email to "reviewer"

1.0.5.1-alpha, June 20, 2015
----------------------------

[](#1051-alpha-june-20-2015)

- Fixed dependency on matacms-base ~1.1-alpha

1.0.5-alpha, June 20, 2015
--------------------------

[](#105-alpha-june-20-2015)

- Added dependency on matacms-base ~1.0-alpha

1.0.4-alpha, June 8, 2015
-------------------------

[](#104-alpha-june-8-2015)

- Updates for console application

1.0.3-alpha, June 3, 2015
-------------------------

[](#103-alpha-june-3-2015)

- Bug fixes

1.0.2-alpha, May 28, 2015
-------------------------

[](#102-alpha-may-28-2015)

- Added check for console application in Bootstrap
- Added handling of logged-in users to get latest versions of records

1.0.1-alpha, May 26, 2015
-------------------------

[](#101-alpha-may-26-2015)

- Added dependency on matacms-base ~1.0.7-alpha where \[\[ActiveQuery::EVENT\_BEFORE\_PREPARE\_STATEMENT\]\] was added
- Completely rewrote getting live versions, from iterating through fetched models to injecting conditions in SQL command
- Code cleanup, especially in \[\[Bootstrap\]\]
- Added dummy unit test

1.0.0-alpha, May 18, 2015
-------------------------

[](#100-alpha-may-18-2015)

- Initial release.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

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

Every ~117 days

Recently: every ~391 days

Total

16

Last Release

2255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/894e97cca05581e84231d47aa964c3cbca2cc71d97a8aa2c77f7c74983812b1e?d=identicon)[qiinteractive](/maintainers/qiinteractive)

![](https://www.gravatar.com/avatar/a9e7c545f556272ce9b40e7c20d3be8196f1a19f4130b13d350d36a923838e32?d=identicon)[michal-qi](/maintainers/michal-qi)

---

Top Contributors

[![wichura](https://avatars.githubusercontent.com/u/878562?v=4)](https://github.com/wichura "wichura (45 commits)")

---

Tags

environmentyii2matamatacms-environment

### Embed Badge

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

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

###  Alternatives

[janisto/yii2-environment

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

2034.6k3](/packages/janisto-yii2-environment)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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