PHPackages                             felixmaier1989/yii2-renderdual - 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. [Templating &amp; Views](/categories/templating)
4. /
5. felixmaier1989/yii2-renderdual

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

felixmaier1989/yii2-renderdual
==============================

Make your actions compatible for Ajax requests

1.0(10y ago)07MITPHP

Since Jul 26Pushed 10y ago1 watchersCompare

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

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

Yii2-RenderDual
===============

[](#yii2-renderdual)

Make your actions compatible for Ajax requests

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist felixmaier1989/yii2-renderdual "*"

```

or add

```
"felixmaier1989/yii2-renderdual": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by extending your controller:

```
...
use yii2renderdual\RenderDual;

class SiteController extends Controller
{
    public function behaviors()
    {
        return [
            ...
            \yii2renderdual\RenderDual::className()
        ];
    }

    public function actionAbout()
    {
        Yii::$app->session->setFlash('success', 'Welcome on my home page');
        $fruits = ['banana', 'apple', 'jackfruit', 'papaya'];
        return $this->renderDual('about', compact('fruits'), true);
    }
...
```

An Ajax call to your `site/about` action would then return

```
Array
(
    [flashes] => Array
        (
            [success] => Welcome on my home page
        )
    [params] => Array
        (
            [fruits] => Array
                (
                    [0] => banana
                    [1] => apple
                    [2] => jackfruit
                    [3] => papaya
                )

        )
    [rendered] => AboutI like banana, apple, jackfruit, papaya
)

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

3944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02fbf70ae012375245c69ee5fbc29c8554be73c191a320b9855884bee9b3d992?d=identicon)[felixmaier1989](/maintainers/felixmaier1989)

---

Top Contributors

[![felixmaier1989](https://avatars.githubusercontent.com/u/10077436?v=4)](https://github.com/felixmaier1989 "felixmaier1989 (12 commits)")

---

Tags

requestviewyii2extensionajaxrenderaction

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/felixmaier1989-yii2-renderdual/health.svg)

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

###  Alternatives

[marekpetras/yii2-calendarview-widget

CalendarView widget for Yii 2 Framework.

2229.1k](/packages/marekpetras-yii2-calendarview-widget)[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2145.0k4](/packages/raoul2000-yii2-bootswatch-asset)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.1k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

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