PHPackages                             dlds/yii2-intercooler - 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. dlds/yii2-intercooler

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

dlds/yii2-intercooler
=====================

Yii2 Intercooler extensions

2.9(8y ago)32.8kMITPHP

Since Mar 29Pushed 8y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Yii2 Intercooler integration
============================

[](#yii2-intercooler-integration)

Easy integration of Intercooler.js (the easy to use Ajax handler) into Yii2 framework. Provides bunch of ready to use widgets with preddefined Intercooler requirements.

> See Intercooler.js official docs on

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

[](#installation)

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

Either run

```
$ composer require dlds/yii2-intercooler
```

or add

```
"dlds/yii2-intercooler": "~2.0"

```

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

Module Base Class
-----------------

[](#module-base-class)

Base module class **Intercooler** holds all options for Intercooler required html element attributes. Also handles registering of required js files using **IntercoolerAssets**. It is usually init through some of included widgets.

### Response Headers

[](#response-headers)

Using base class static methods you are allowed to set specific intercooler headers.

#### X-IC-Redirect

[](#x-ic-redirect)

To be able to redirect user to new url after intercooler request is done you have to set redirect header in server side.

```
Intercooler::doRedirect('/new-destination-url');

```

#### X-IC-Refresh

[](#x-ic-refresh)

To refresh intercooler elements you can set refresh header on your server side and tell intercooler which elements should be refreshed.

```
Intercooler::doRefresh([
	'/foo/bar'
]);

```

> See what '/foo/bar' stand for in [official docs](http://intercoolerjs.org/docs.html#dependencies)

#### X-IC-Remove

[](#x-ic-remove)

To remove targetted element you have to set remove header on server side.

```
Intercooler::doRemove();

```

Widgets
-------

[](#widgets)

Integration comes with buch of ready made modules based on intercooler behavior.

### AjaxBlock

[](#ajaxblock)

Helper which renders appropriate html element with required intercooler attributes.

```
AjaxBlock::begin([
	'id' => 'my-ic-widget',
	'wrapper' => 'button',
	'options' => ['class' => 'text-gray']
	'intercooler' => [
		'url' => '/my-custom-url',
		'target' => '#my-target-element',
	],
]);

// ... custom content

AjaxBlock::end();

```

> For more widget options see [AjaxBlock](https://github.com/dlds/yii2-intercooler/blob/master/src/widgets/AjaxBlock.php) class documentation.

### InfiniteList

[](#infinitelist)

Renderes Infinite ListView widget.

```
InfiniteList::widget([
	'id' => 'my-ic-infinite-list,
	// 	...
	//	standart ListView widget options
	// 	...
	'layout' => "{indicatorRefresh}{items}{pager}\n",
	'partialLayout' => "{items}{pager}\n",
	'intercooler' => [
		'url' => '/my-ic-feed-url,
		'type' => \dlds\intercooler\Intercooler::RQ_TYPE_SRC,
	],
	'pager' => [
    	'class' => InfiniteListPager::className(),
    ],
]);

```

> For more widget options see [InfiniteList](https://github.com/dlds/yii2-intercooler/blob/master/src/widgets/infinite/InfiniteList.php) class documentation.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 81.6% 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 ~44 days

Recently: every ~132 days

Total

18

Last Release

2932d ago

Major Versions

1.7 → 2.02016-07-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/23f0d05bb48111bd348c97af007c453b374ba03c36ec4fd114dfd73896bf5958?d=identicon)[dlds](/maintainers/dlds)

---

Top Contributors

[![jirisvoboda](https://avatars.githubusercontent.com/u/10264326?v=4)](https://github.com/jirisvoboda "jirisvoboda (31 commits)")[![svobik7](https://avatars.githubusercontent.com/u/761766?v=4)](https://github.com/svobik7 "svobik7 (7 commits)")

---

Tags

yii2intercooler

### Embed Badge

![Health badge](/badges/dlds-yii2-intercooler/health.svg)

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

###  Alternatives

[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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