PHPackages                             aayushmhu/yii2-popupbutton - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aayushmhu/yii2-popupbutton

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

aayushmhu/yii2-popupbutton
==========================

Add Popup Where You Want in Your Yii2 App. This Extension is a Combination of Bootstrap4 Button and Bootstrap4 Modal. With the Help of THis Extension, You can Easily Render any Page Into Poup Modal in Your YII2 Application.

0174PHP

Since Dec 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aayushmhu/popupbutton)[ Packagist](https://packagist.org/packages/aayushmhu/yii2-popupbutton)[ RSS](/packages/aayushmhu-yii2-popupbutton/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

popupbutton
===========

[](#popupbutton)

To Install This Plugin Run

"composer require aayushmhu/yii2-popupbutton dev-main"

For Use This Plugin You Need to Write tHis Code

For Example

```

// IN View

// For Popup Add Modal
\yii\bootstrap4\Modal::begin([
'id' => 'modal',
'size' => 'modal-lg',
]);

echo "";
\yii\bootstrap4\Modal::end();

use \aayushmhu\popupbutton\PopupButton;

echo PopupButton::widget([
    'options' => [
        'id'=>\aayushmhu\popupbutton\PopupButton::DEFAULT_BUTTON,
        'value'=>'/site/popup',
        'class'=>'btn btn-primary popupButton',
    ],
    'formid'=>'department-form',
    'type'=>\aayushmhu\popupbutton\PopupButton::POPUP_VIEWONLY,
    'label'=>'Popup',
]);

```

In Controller render your pages as Ajax

```

public function actionPopup(){

    $model = $this->yourmodel();

    return $this->renderAjax('contact', [
        'model' => $model,
    ]);
}

```

value : This is the Url of Rendered Page formid : This is Form if of Your Form if You Used form inside Popup

Note : Class Must be Used "popupButton" Other wise Plugin Not Worked

type: Popuptype Defineed if You use Popup With Diffrent Diffent Type

1. POPUP\_VIEWONLY Popup is Just Render of Any Page
2. POPUP\_WITHFORM This Type of Popup is Used for Form Submmision
3. POPUP\_WITHFORM\_SEARCH This Type of Popup is Used for Form Submission With a Search Form and if Pagination is True in Page Then it Will submit Data and PAge Will Stay on Pagination You Just See Form Submit and Page not Refreshed and Data Submitted and Updated

When You Use POPUP\_WITHFORM\_SEARCH you Must Defined "searchformid" On Page

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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/5a2642ea08675bb5d56d84d7557acf55200c1f77ace85d2d50338c50be988893?d=identicon)[aayushmhu](/maintainers/aayushmhu)

---

Top Contributors

[![aayushmhu](https://avatars.githubusercontent.com/u/30325544?v=4)](https://github.com/aayushmhu "aayushmhu (21 commits)")

### Embed Badge

![Health badge](/badges/aayushmhu-yii2-popupbutton/health.svg)

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

PHPackages © 2026

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