PHPackages                             filsh/yii2-mpjax - 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. filsh/yii2-mpjax

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

filsh/yii2-mpjax
================

Multi pjax + backbone.js implementation

028PHP

Since Jul 7Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-mpjax
==========

[](#yii2-mpjax)

Multi pjax + backbone.js implementation

Installation
============

[](#installation)

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist filsh/yii2-mpjax "\*"

or add

"filsh/yii2-mpjax": "\*"

to the require section of your composer.json

Usage
=====

[](#usage)

```
$this->beginMpjax('header');
    echo 'header';
$this->endMpjax();

$this->beginMpjax('body');
    echo 'body';
$this->endMpjax();
```

```
Backbone.Mpjax = {
    Router: Backbone.Router.extend({
        navigate: function (fragment, options) {
            this.trigger('mpjax:start', fragment);
            Backbone.Router.prototype.navigate.apply(this, [fragment, options]);

            var self = this;
            $.ajax({
                url: fragment,
                beforeSend: function (xhr) {
                    xhr.setRequestHeader('X-PJAX', 'true');
                    xhr.setRequestHeader('X-PJAX-Container-0', 'header');
                    xhr.setRequestHeader('X-PJAX-Container-1', 'body');
                },
                success: function (data) {
                    //  Object { header="header",  body="body"}
                    self.trigger('mpjax:success');
                },
                error: function () {
                    self.trigger('mpjax:error');
                }
            });
        }
    })
};

var Router = Backbone.Mpjax.Router.extend({
  routes: {
    "test": "test"
  },

  test: function(){
    console.log("Test!");
  }
});
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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/7fafc0b472b8b8cf1097a6fb094b7c5c10293e2f976e9eacb1ea1a34031b6e15?d=identicon)[Filsh](/maintainers/Filsh)

---

Top Contributors

[![filsh](https://avatars.githubusercontent.com/u/6173680?v=4)](https://github.com/filsh "filsh (18 commits)")

### Embed Badge

![Health badge](/badges/filsh-yii2-mpjax/health.svg)

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

###  Alternatives

[tooltipster/tooltipster

Tooltipster is a flexible and extensible jQuery plugin for modern tooltips.

2.7k9.4k2](/packages/tooltipster-tooltipster)[litepie/task

Task package for Lavalite

1210.0k](/packages/litepie-task)[mobizel/markdown-docs-bundle

Explore your markdown documentation files via html web pages

108.6k](/packages/mobizel-markdown-docs-bundle)

PHPackages © 2026

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