PHPackages                             evheniy/jquery-bundle - 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. evheniy/jquery-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

evheniy/jquery-bundle
=====================

The JqueryBundle adds the ability to add latest jQuery to your application.

1.5.1(9y ago)325.2k13MITPHPPHP &gt;=5.5.9

Since Apr 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/evheniy/JqueryBundle)[ Packagist](https://packagist.org/packages/evheniy/jquery-bundle)[ RSS](/packages/evheniy-jquery-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (11)Used By (3)

JqueryBundle
============

[](#jquerybundle)

[![knpbundles.com](https://camo.githubusercontent.com/c7474d6874f427ea59bc562e5a3e7dae5c05349c2b978978dd6eb95393935df4/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f4a717565727942756e646c652f6261646765)](http://knpbundles.com/evheniy/JqueryBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/443d10c13b206e6d9ad73b436065288f9867a094459e20dcd1b15ba247780f9d/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6a71756572792d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/evheniy/jquery-bundle) [![Total Downloads](https://camo.githubusercontent.com/dda3f4b5686a6d6bd8c49cd04ba09d945ad3c2d353f0e350744c955eb0179878/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6a71756572792d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/evheniy/jquery-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/a3c916226cf0f10d06d6cf0b68724b49b75722bfdc40117467d7298f25a4b277/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6a71756572792d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/evheniy/jquery-bundle) [![License](https://camo.githubusercontent.com/afe5656132d31b9d74aaa917b22ae4777fa5806167963e8ae8de67bea73fdadc/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f6a71756572792d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/evheniy/jquery-bundle)

[![Build Status](https://camo.githubusercontent.com/6e3c727ceae34fbb81625883095ec43f9858152a22ee01171fcaeb649648e751/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f4a717565727942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/evheniy/JqueryBundle)[![Coverage Status](https://camo.githubusercontent.com/7c9e742138e7588a2e4db7f5843d596f479a20dd9f076988402bb95e139449d1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f4a717565727942756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/JqueryBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ff03f7d7870d1a8cfe2625050a3dc86f1ebb2e5708bc90ec488edc369574d7d4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f4a717565727942756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/JqueryBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/baf803ae9dd34bd734b4dd94c2c2a7473d51d4476129001619ad45aaab3728cf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f4a717565727942756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/JqueryBundle/build-status/master)

This bundle provides jQuery in Symfony2 from CDN ajax.googleapis.com

Documentation
-------------

[](#documentation)

You can change jQuery version:

```
jquery:
    version: 1.11.3

```

Default value: 1.11.3

You can set jQuery local version (it helps if Google CDN doesn't work):

```
jquery:
    local: '@AppBundle/Resources/public/js/jquery-1.11.3.min.js'

```

Default value: '@JqueryBundle/Resources/public/js/jquery-1.11.3.min.js'

You can use old html version:

```
jquery:
    html5: false

```

Default value: true. If false script will be with type="text/javascript"

You can use async loading:

```
jquery:
    async: true

```

Default value: false. If true script will be with async="async"

You can use local CDN (domain):

```
jquery:
    cdn: cdn.site.com

```

Default value is empty

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

[](#installation)

```
$ composer require evheniy/jquery-bundle "1.*"

```

Or add to composer.json

```
"evheniy/jquery-bundle": "1.*"

```

AppKernel:

```
public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\JqueryBundle\JqueryBundle(),
        );
        ...

```

config.yml:

```
#JqueryBundle
jquery: ~

or

#JqueryBundle
jquery:
    version: 1.11.3
    local: '@AppBundle/Resources/public/js/jquery-1.11.3.min.js'
    html5: true
    async: false
    cdn: cdn.site.com

```

And Assetic Configuration in config.yml:

```
#Assetic Configuration
assetic:
    bundles: [ JqueryBundle ]

```

Add this string to your layout

```
{% include "JqueryBundle:Jquery:jquery.html.twig" %}

```

The last step

```
app/console assetic:dump --env=prod --no-debug

```

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/JqueryBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/jquery_bundle.html)

[Jquery](https://jquery.com/) and [Google Hosted Libraries](https://developers.google.com/speed/libraries/devguide#jquery)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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 ~47 days

Recently: every ~99 days

Total

10

Last Release

3633d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.0

1.5.1PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (38 commits)")[![olgierds](https://avatars.githubusercontent.com/u/3164805?v=4)](https://github.com/olgierds "olgierds (1 commits)")

---

Tags

symfonyjquerylatest

### Embed Badge

![Health badge](/badges/evheniy-jquery-bundle/health.svg)

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

PHPackages © 2026

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