dev-master
9999999-dev http://srobbin.com/jquery-plugins/backstretch/Symfony2 Bundle jquery-backstretch
MIT
The Requires
Symfony2 Bundle jquery-backstretch
jquery-backstretch Bundle for Symfony2, (*1)
jquery-backstretch v2.0.4 - http://srobbin.com/jquery-plugins/backstretch/, (*2)
``` js // composer.json, (*3)
{ "require": { // ... "stinger/jquery-backstretch-bundle": "~2.0.4" } }, (*4)
### Add bundle to your application kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Stinger\JQueryBackstretchBundle\StingerJQueryBackstretchBundle(), // ... ); }
``` bash $ php composer.phar update stinger/jquery-backstretch-bundle, (*5)
### Install assets Given your server's public directory is named "web", install the public vendor resources ``` bash $ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources, (*6)
``` bash $ php app/console assets:install --symlink web, (*7)
### Usage Add the css and js file where needed: ``` html {% javascripts 'bundles/stingerjquerybackstretch/js/jquery.backstretch.min.js' %} <script src="{{ asset_url }}" ></script> {% endjavascripts %}
Refer to the source code of the included files for license information, (*8)
Symfony2 Bundle jquery-backstretch
MIT