PHPackages                             bigdropinc/yii2-ajax-access-rule - 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. bigdropinc/yii2-ajax-access-rule

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

bigdropinc/yii2-ajax-access-rule
================================

Ajax access rule for yii2 access filter

1.0.0(9y ago)12311BSD-3-ClausePHP

Since Apr 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bigdropinc/yii2-ajax-access-rule)[ Packagist](https://packagist.org/packages/bigdropinc/yii2-ajax-access-rule)[ RSS](/packages/bigdropinc-yii2-ajax-access-rule/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

yii2-ajax-access-rule
=====================

[](#yii2-ajax-access-rule)

Ajax access rule for yii2 access filter

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist bigdropinc/yii2-ajax-access-rule "*"

```

or add

```
bigdropinc/yii2-ajax-access-rule

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

For AccessControl rules use AjaxRule::className()

```
'access' => [
	            'class' => AccessControl::className(),
	            'rules' => [
	            	[
	                    'class' => AjaxRule::className(),
	                    'actions' => ['some-action'],
	                    'verbs' => ['POST'],
	                    'allow' => true #this will allow only ajax requests for specified action
	                ],
	            	[
	                    'class' => AjaxRule::className(),
	                    'actions' => ['another-action'],
	                    'allow' => false #this will allow only non-ajax request for specified action
	                ],
	            ]
]

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3319d ago

### Community

Maintainers

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

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

![](https://www.gravatar.com/avatar/1b84e6af576c112f5cfb1ef04877a9ae3a2a10a6ded9a42a9f6eca010200ef8d?d=identicon)[gofmanaa](/maintainers/gofmanaa)

![](https://www.gravatar.com/avatar/0734a7d71a0cebbac5797de892a4837f7b7512e337c0fb91c1486a12221faa25?d=identicon)[bigdropinc](/maintainers/bigdropinc)

---

Top Contributors

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

---

Tags

filteraccessyii2extensionajax

### Embed Badge

![Health badge](/badges/bigdropinc-yii2-ajax-access-rule/health.svg)

```
[![Health](https://phpackages.com/badges/bigdropinc-yii2-ajax-access-rule/health.svg)](https://phpackages.com/packages/bigdropinc-yii2-ajax-access-rule)
```

###  Alternatives

[thrieu/yii2-grid-view-state

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

1313.1k1](/packages/thrieu-yii2-grid-view-state)[keygenqt/yii2-autocomplete-ajax

A simple way to search model id of the attributes model

1015.8k](/packages/keygenqt-yii2-autocomplete-ajax)[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.4k](/packages/vxm-yii2-searchable)

PHPackages © 2026

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