PHPackages                             sadi01/yii2-mutex-filter - 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. [Search &amp; Filtering](/categories/search)
4. /
5. sadi01/yii2-mutex-filter

ActiveYii2-extension[Search &amp; Filtering](/categories/search)

sadi01/yii2-mutex-filter
========================

MutexFilter is an action filter that apply mutex on controller's actions.

v1.0.0(4y ago)01BSD-3-ClausePHP

Since Mar 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Sadi01/yii2-mutex-filter)[ Packagist](https://packagist.org/packages/sadi01/yii2-mutex-filter)[ RSS](/packages/sadi01-yii2-mutex-filter/feed)WikiDiscussions master Synced 3d ago

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

Yii2 Mutex Filter
=================

[](#yii2-mutex-filter)

MutexFilter is an action filter relies on Yii2 Mutex component that apply mutex on controller's actions.

The Mutex component allows mutual execution of concurrent processes in order to prevent "race conditions". See [Yii2 Mutex](https://github.com/yiisoft/mutex/blob/master/README.md) document.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run console command

```
composer require sadi01/yii2-mutex-filter "*"

```

Or add the package to the `require` section of your `composer.json` file:

```
{
    "require": {
      "sadi01/yii2-mutex-filter": "*"
    }
}
```

then run `composer update`.

Usage
-----

[](#usage)

Config Yii2 Mutex component

```
[
    'components' => [
        'mutex' => [
            'class' => 'yii\mutex\FileMutex'
        ],
    ],
]
```

Then, simply use MutexFilter in your controller's behaviors :

```
public function behaviors()
{
    return [
        'mutexFilter' => [
            'class' => \sadi01\mutexFilter\MutexFilter::class,
            'mutexKeyPostfix' => 'anyString', // Optional
            'exceptActions' => ['index', 'view'] // Exclude some actions
        ]
    ];
}
```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

1608d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bba5660903294a7550aa697b888fd0810c2493097c079170f98a5f18cc1aada?d=identicon)[Sadi01](/maintainers/Sadi01)

---

Top Contributors

[![Sadi01](https://avatars.githubusercontent.com/u/8774917?v=4)](https://github.com/Sadi01 "Sadi01 (1 commits)")

---

Tags

concurrencymutexrace conditionfilteryii2extensionBehaviorconcurrent processmutex filter

### Embed Badge

![Health badge](/badges/sadi01-yii2-mutex-filter/health.svg)

```
[![Health](https://phpackages.com/badges/sadi01-yii2-mutex-filter/health.svg)](https://phpackages.com/packages/sadi01-yii2-mutex-filter)
```

###  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.0k66](/packages/skeeks-cms)[thrieu/yii2-grid-view-state

Save filters from GridView to session, keep the filter state between pages.

1313.8k1](/packages/thrieu-yii2-grid-view-state)[cyneek/yii2-routes

Routing and filtering extension system for Yii2 framework that emulates the Laravel routing system.

202.1k](/packages/cyneek-yii2-routes)[vxm/yii2-searchable

Simple full-text search for Yii2 active record

181.5k](/packages/vxm-yii2-searchable)

PHPackages © 2026

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