PHPackages                             apollo11/yii2-behaviors - 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. [Framework](/categories/framework)
4. /
5. apollo11/yii2-behaviors

ActiveLibrary[Framework](/categories/framework)

apollo11/yii2-behaviors
=======================

Collection of global helper behaviors for Yii2 Framework

v1.0.3(7y ago)114PHP

Since Apr 25Pushed 7y ago3 watchersCompare

[ Source](https://github.com/apolloeleven/yii2-behaviors)[ Packagist](https://packagist.org/packages/apollo11/yii2-behaviors)[ Docs](https://github.com/apolloeleven/yii2-behaviors)[ RSS](/packages/apollo11-yii2-behaviors/feed)WikiDiscussions master Synced yesterday

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

Yii2 behaviors
==============

[](#yii2-behaviors)

#### Global Page Cache Behavior

[](#global-page-cache-behavior)

Following behavior gives you the ability to enable Yii2 PageCache globally from config. Copy the following config to your respective config file.

```
...
'as globalCache' => [
    'class' => '\apollo11\behaviors\behaviors\GlobalPageCacheBehavior',
    'rules' => [
        [
            'controller' => 'about',
            'actions' => ['index', 'main'],
            'except' => ['view'],
            'duration' => 70,
            'variations' => [
                \apollo11\behaviors\behaviors\GlobalPageCacheBehavior::VARIATION_BY_LANGUAGE,
                \apollo11\behaviors\behaviors\GlobalPageCacheBehavior::VARIATION_BY_URL,
            ],
        ]
    ]
],
...
```

ParamValueController**String** : Controller ID : RequiredDuration**Integer** : Cache duration in seconds : Optional : Default - 60 secondsActions**Array** : Action IDs to cache: Required : '\*' - for all actionsExcept**Array** : Action IDs to skip cache on : Optional Variations**Array** : Strings for respective vartiations of caching : Optional

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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 ~0 days

Total

4

Last Release

2575d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47417401?v=4)[Zura Sekhniashvili](/maintainers/arboshiki)[@arboshiki](https://github.com/arboshiki)

---

Top Contributors

[![saiat3](https://avatars.githubusercontent.com/u/17884566?v=4)](https://github.com/saiat3 "saiat3 (11 commits)")

---

Tags

yii2Behaviorglobal-behavior

### Embed Badge

![Health badge](/badges/apollo11-yii2-behaviors/health.svg)

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

###  Alternatives

[arogachev/yii2-sortable

Sortable ActiveRecord for Yii 2 framework

1637.0k4](/packages/arogachev-yii2-sortable)

PHPackages © 2026

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