PHPackages                             dchaofei/yii2-ajaxmodal - 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. dchaofei/yii2-ajaxmodal

ActiveYii2-extension

dchaofei/yii2-ajaxmodal
=======================

Yii 2 ajax modal gii template.

0812PHP

Since Apr 19Pushed 7y agoCompare

[ Source](https://github.com/dchaofei/yii2-ajaxmodal)[ Packagist](https://packagist.org/packages/dchaofei/yii2-ajaxmodal)[ RSS](/packages/dchaofei-yii2-ajaxmodal/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-ajax-modal-gii-template
============================

[](#yii2-ajax-modal-gii-template)

让你的 Yii2 应用后台使用模态框吧。
--------------------

[](#让你的-yii2-应用后台使用模态框吧)

使用方法
----

[](#使用方法)

- 安装

```
composer require dchaofei/yii2-ajaxmodal:dev-master
```

- 配置

```
'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'generators' => [
                'crud' => [
                    'class' => 'yii\gii\generators\crud\Generator',
                    'templates' => [
                        'ajax-modal' => '@vendor/dchaofei/yii2-ajaxmodal/gii-template/curd/default',
                    ]
                ]
            ],
        ]
    ],
```

- 之后使用 gii 生成 curd,模板选择 ajax-modal [![](https://raw.githubusercontent.com/dchaofei/images/master/yii2-ajaxmodal/operate.png)](https://raw.githubusercontent.com/dchaofei/images/master/yii2-ajaxmodal/operate.png)

示例图片
----

[](#示例图片)

[![](https://raw.githubusercontent.com/dchaofei/images/master/yii2-ajaxmodal/example.gif)](https://raw.githubusercontent.com/dchaofei/images/master/yii2-ajaxmodal/example.gif)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![dchaofei](https://avatars.githubusercontent.com/u/29528188?v=4)](https://github.com/dchaofei "dchaofei (8 commits)")

### Embed Badge

![Health badge](/badges/dchaofei-yii2-ajaxmodal/health.svg)

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

PHPackages © 2026

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