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

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

shane/jquery-bundle
===================

Easy version management and Twig support for jQuery

05[2 issues](https://github.com/shamess/jquerybundle/issues)PHP

Since Apr 20Pushed 12y agoCompare

[ Source](https://github.com/shamess/jquerybundle)[ Packagist](https://packagist.org/packages/shane/jquery-bundle)[ RSS](/packages/shane-jquery-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

jQuery Fetcher
==============

[](#jquery-fetcher)

Specify what version of jQuery you want, and let the bundle handle getting it and showing either the minified or development version.

You might want to checkout [bower](http://bower.io/search/?q=jquery) to see if that fits your needs better than this bundle.

Installation via Composer
-------------------------

[](#installation-via-composer)

Best way to get this bundle using [composer](https://getcomposer.org/).

```
{
    "require": {
        "guzzlehttp/guzzle": "~4.0"
    }
}
```

And then register the bundle in your `app/AppKernel.php`.

```
public function registerBundles()
{
    $bundles = array(
        // ..,
        new Shane\JqueryBundle\ShaneJqueryBundle(),
    );
}
```

In order for the twig files to work, you will need to allow them to access assetic. You can do this by adding `ShaneJqueryBundle` to your `assetic.bundles` configuration, in `app/config/config.yml`.

Usage
-----

[](#usage)

### Change version

[](#change-version)

By default, you'll get jQuery version 2.1.0 (the latest stable version at time of writing), but you can change the version you want to get by setting it in your `app/config/config.yml`.

```
shane_jquery:
    version: 1.9.1
```

This version number needs to look like it will in the jQuery download URL: "X.Y.Z". There's nothing fancy going on with the version number, so no wild cards. It's just a string that gets put into the URL.

### Download jQuery

[](#download-jquery)

Downloading the jQuery version you want isn't automatic; you need to run a command to get it to download.

```
app/console jquery:download
```

### Output to twig

[](#output-to-twig)

Two jQuery files are downloaded: the minimised and the development version. You can get access to these using the shorthand syntax "@ShaneJqueryBundle/Resources/public/js/jquery.js" or "jquery.min.js" for the minified version.

You can put those file paths into a `{% javascripts %}` if you like. This'll give you flexibility to run filters on the files.

However, it's recommended you just output the included twig file, which will decide which file to show based on dev or prod environments.

```
{% include 'ShaneJqueryBundle::jquery.html.twig' %}
```

Contributing
------------

[](#contributing)

If you're using this bundle, then you may want to check out this project's issues. There's a few since this was just a quick bundle I threw together.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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