PHPackages                             conquer/modal - 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. conquer/modal

ActiveYii2-extension[Framework](/categories/framework)

conquer/modal
=============

Extension for the Yii2 framework

v1.1.5(8y ago)1521.9k↓30.6%11[1 issues](https://github.com/borodulin/yii2-modal-form/issues)[2 PRs](https://github.com/borodulin/yii2-modal-form/pulls)MITJavaScript

Since Jan 12Pushed 4y ago3 watchersCompare

[ Source](https://github.com/borodulin/yii2-modal-form)[ Packagist](https://packagist.org/packages/conquer/modal)[ Docs](https://github.com/borodulin/yii2-modal-form)[ RSS](/packages/conquer-modal/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Yii2 Ajax modal form
====================

[](#yii2-ajax-modal-form)

Description
-----------

[](#description)

This extension allows you to quickly add full-featured modal forms to your appllication. Main featues are:

1. Based on bootstrap modal forms.
2. Allows quickly add behavior to interact with viewing and updating data in modal dialogs.
3. Catch form post events, converts them to ajax request and display results in the same modal dialog.

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

[](#installation)

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

To install, either run

```
$ php composer.phar require conquer/modal "*"

```

or add

```
"conquer/modal": "*"

```

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

Usage
-----

[](#usage)

Somewhere in the main layout

```
\conquer\modal\ModalForm::widget([
    'selector' => '.modal-form',
]);
```

Whenever you want to add behavior to tag a, just add class 'modal-form'

```
    echo Html::a('Some modal action', ['controller/action'], ['class' => 'modal-form']);
```

To improve traffic data and error exceptions you need to control layout rendering when ajax requests. I recommend you to override default rendering in your controllers:

```
class Controller extends \yii\web\Controller
{
    /**
     * Exclude layout rendering when ajax requests
     */
    public function render($view, $params = [])
    {
        if (\Yii::$app->request->isAjax) {
            return $this->renderPartial($view, $params);
        }
        return parent::render($view, $params);
    }
}
```

### Client Options

[](#client-options)

To add client options use `clientOptions` key. Available client options are: `id`, `class`, `tabindex`.

- Id key **replaces** existing auto generated id attribute.
- Class key **adds** classes to html class attribute.
- Tabindex key **replaces** existing default tabindex html attribute (-1), when false, then no tabindex attribute appears.

```
\conquer\modal\ModalForm::widget([
    'selector' => '.modal-form',
    'clientOptions' => [
        'id' => 'sample-unique-id',
        'class' => 'sample-class1 sample-class2',
        'tabindex' => false
    ]
]);

```

License
-------

[](#license)

**conquer/modal** is released under the MIT License. See the bundled `LICENSE` for details.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~78 days

Recently: every ~115 days

Total

7

Last Release

2977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67126642d0e8ae8837b3104dcd120f7992ed0837538a7d140914e17420eb17c2?d=identicon)[borodulin](/maintainers/borodulin)

---

Top Contributors

[![borodulin](https://avatars.githubusercontent.com/u/8121448?v=4)](https://github.com/borodulin "borodulin (42 commits)")[![paskuale75](https://avatars.githubusercontent.com/u/9800?v=4)](https://github.com/paskuale75 "paskuale75 (2 commits)")

---

Tags

yii2ajaxformmodal

### Embed Badge

![Health badge](/badges/conquer-modal/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[yiisoft/yii2-app-advanced

Yii 2 Advanced Project Template

1.7k960.6k5](/packages/yiisoft-yii2-app-advanced)[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

44912.1M264](/packages/yiisoft-yii2-redis)[yiisoft/yii2-debug

The debugger extension for the Yii framework

20324.2M616](/packages/yiisoft-yii2-debug)[yiisoft/yii2-app-basic

Yii 2 Basic Project Template

6751.8M8](/packages/yiisoft-yii2-app-basic)[yiisoft/yii2-apidoc

API Documentation generator for the Yii framework 2.0

259709.1k31](/packages/yiisoft-yii2-apidoc)

PHPackages © 2026

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