PHPackages                             yidas/yii2-jquery - 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. yidas/yii2-jquery

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

yidas/yii2-jquery
=================

jQuery Asset Bundle extension with fixed and CDN sources for Yii2 framework

3.0.0(7y ago)219.5k↓31.8%12MITPHPPHP &gt;=5.4.0

Since Sep 29Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (2)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft) [ ![](https://camo.githubusercontent.com/35db5d83a8f4cebcf50ec4c70d7833841fe21dc201347e469186a57e3b071cca/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f656e2f7468756d622f392f39652f4a51756572795f6c6f676f2e7376672f32323070782d4a51756572795f6c6f676f2e7376672e706e67) ](https://jquery.com)

jQuery Extension for Yii 2
===========================

[](#jquery-extension-for-yii-2-)

jQuery Asset Bundle extension with fixed and CDN sources for Yii2 framework

[![Latest Stable Version](https://camo.githubusercontent.com/339614cfe0a6f76bac2b55eecbb44bf539dd2e101f3ade1192b9ef4ec36d030c/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d6a71756572792f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-jquery)[![Latest Unstable Version](https://camo.githubusercontent.com/77b6b744a3956d5d5c5670c7b2282611253aeb3fc4414581ddb5c484d2df5ac8/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d6a71756572792f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-jquery)[![License](https://camo.githubusercontent.com/d9cc2538fe88fa085b30a2e770231c295709f781c92c647d2f2d30751ae2e4d4/68747470733a2f2f706f7365722e707567782e6f72672f79696461732f796969322d6a71756572792f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/yidas/yii2-jquery)

This is the [jQuery](https://jquery.com/) extension for [Yii framework 2.0](http://www.yiiframework.com/). It provides fixed and CDN [jQuery](https://github.com/jquery/jquery) distribution assets and thus makes using jQuery in Yii applications extremely easy.

FEATURES
--------

[](#features)

- ***No Bower**, Composer installation only*
- ***CDN &amp; fixed** assets source provided*
- ***Version Controll** refers to jQuery*

---

INSTALLATION
------------

[](#installation)

The preferred install way is through [Composer](http://getcomposer.org/download/):

```
composer require yidas/yii2-jquery

```

Version options refered jQuery release:

```
composer require yidas/yii2-jquery ~2.0.0
composer require yidas/yii2-jquery ~3.0.0

```

Or you could edit `composer.json` with adding package in require section then run `composer update`.

```
"yidas/yii2-jquery": "*"

```

---

CONFIGURATION
-------------

[](#configuration)

Register or depend Asset into your application:

```
yidas\yii\jquery\JqueryAsset
```

For example, to register jQuery assets in view :

```
\yidas\yii\jquery\JqueryAsset::register($this);
```

Or as dependency in your app asset bundle :

```
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $js = [
    ];
    public $depends = [
        'yidas\yii\jquery\JqueryAsset'
    ];
}
```

### Version Control

[](#version-control)

This extension includes fixed distribution assets for choosing existing version of jQuery, set the version by configuring `config` file:

```
'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\yii\jquery\JqueryAsset' => [
                'version' => '2.2.4',
            ],
        ],
    ],
],
```

### CDN Asset Mode

[](#cdn-asset-mode)

You could switch Asset to use CDN distribution by configuring `config` file:

```
'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\yii\jquery\JqueryAsset' => [
                'cdnVersion' => '2.2.4',
                'cdn' => true,
            ],
        ],
    ],
],
```

#### Specify a CDN source

[](#specify-a-cdn-source)

You could also specify CDN source you like:

```
'components' => [
    'assetManager' => [
        'bundles' => [
            'yidas\yii\jquery\JqueryAsset' => [
                'cdn' => true,
                'cdnJS' => ['https://code.jquery.com/jquery-2.2.4.min.js'],
            ],
        ],
    ],

],
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2789d ago

Major Versions

2.0.0 → 3.0.02018-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/b30d2b2c0b53aef65fad4af56cd3c7912d3db2b612890c706fe79448717f6aba?d=identicon)[yidas](/maintainers/yidas)

---

Top Contributors

[![yidas](https://avatars.githubusercontent.com/u/12604195?v=4)](https://github.com/yidas "yidas (8 commits)")

---

Tags

asset-bundlejqueryyii2yii2-assetyii2-extensionjqueryyii2yiiassetasset bundle

### Embed Badge

![Health badge](/badges/yidas-yii2-jquery/health.svg)

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

###  Alternatives

[nizsheanez/yii2-asset-converter

Less, Sass, Scss and Phamlp converter for Yii2. No system requires. yii2-composer support, Less autoupdate, customizing of output directory

64167.5k6](/packages/nizsheanez-yii2-asset-converter)[nullref/yii2-datatables

Yii2 Extension for DataTables jQuery plug-in

7290.3k](/packages/nullref-yii2-datatables)[faryshta/yii2-disable-submit-buttons

Yii2 asset to automatically disable submit buttons on Yii2 ActiveForm.

16458.9k](/packages/faryshta-yii2-disable-submit-buttons)

PHPackages © 2026

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