itlized / zurb-foundation
Zurb Foundation Bundle For Symfony
Package info
github.com/ITLized/zurb-foundation
Language:JavaScript
pkg:composer/itlized/zurb-foundation
v5.3.1
2014-07-25 17:31 UTC
Requires
- symfony/framework-bundle: ~2.0
This package is not auto-updated.
Last update: 2026-02-28 20:42:23 UTC
README
Installation
Add bundle to your composer.json file
// composer.json { "require": { // ... "itlized/zurb-foundation": "dev-master" } }
Add bundle to your application kernel
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Itlized\Bundle\ZurbFoundationBundle\ItlizedZurbFoundationBundle(), // ... ); }
Download the bundle using Composer
$ php composer.phar update itlized/zurb-foundation
Install assets
Given your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources
$ php app/console assets:install --symlink web
Usage
Refer to the desired files in your HTML template, e.g.
<link rel="stylesheet" type="text/css" href="{{ asset('bundles/itlizedzurbfoundation/css/foundation.min.css') }}" />
The Foundation scripts requires jQuery. The bundle installs itlized/zurb-foundation, which should be referenced before loading any foundation script.
<script type="text/javascript" src="{{ asset('bundles/itlizedzurbfoundation/js/vendor/jquery.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/itlizedzurbfoundation/js/foundation.min.js') }}"></script>
Licenses
Zurb Foundation is MIT licensed