2017 © Pedro Peláez
 

symfony-bundle jquery-bundle

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

image

evheniy/jquery-bundle

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

  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

JqueryBundle

knpbundles.com, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Build Status Coverage Status Scrutinizer Code Quality Build Status, (*3)

This bundle provides jQuery in Symfony2 from CDN ajax.googleapis.com, (*4)

Documentation

You can change jQuery version:, (*5)

jquery:
    version: 1.11.3

Default value: 1.11.3, (*6)

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

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

Default value: '@JqueryBundle/Resources/public/js/jquery-1.11.3.min.js', (*8)

You can use old html version:, (*9)

jquery:
    html5: false

Default value: true. If false script will be with type="text/javascript", (*10)

You can use async loading:, (*11)

jquery:
    async: true

Default value: false. If true script will be with async="async", (*12)

You can use local CDN (domain):, (*13)

jquery:
    cdn: cdn.site.com

Default value is empty, (*14)

Installation

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

Or add to composer.json, (*15)

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

AppKernel:, (*16)

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

config.yml:, (*17)

#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:, (*18)

#Assetic Configuration
assetic:
    bundles: [ JqueryBundle ]

Add this string to your layout, (*19)

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

The last step, (*20)

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

License

This bundle is under the [MIT][4] license., (*21)

Документация на русском языке, (*22)

Jquery and Google Hosted Libraries, (*23)

The Versions

06/06 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

jquery symfony latest

06/06 2016

1.5.1

1.5.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

jquery symfony latest

02/12 2015

1.5.0

1.5.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

jquery symfony latest

01/09 2015

1.4.3

1.4.3.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

05/05 2015

1.4.2

1.4.2.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

04/05 2015

1.4.1

1.4.1.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

04/05 2015

1.4

1.4.0.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

18/04 2015

1.3

1.3.0.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

18/04 2015

1.2

1.2.0.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

15/04 2015

1.1

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest

04/04 2015

1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

jquery symfony latest