frux / foundation6-bundle
ZURB Foundation 6 Bundle for Symfony2
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 568
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Type:symfony-bundle
Requires
- symfony/framework-bundle: >=2.1
This package is not auto-updated.
Last update: 2019-08-29 02:39:33 UTC
README
Current Version
Foundation v6.1
Installation
Add bundle to your composer.json file
// composer.json { "require": { // ... "frux/foundation6-bundle": "~6.1" } }
Add bundle to your application kernel
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Frux\FoundationBundle\FruxFoundationBundle(), // ... ); }
Download the bundle using Composer
$ php composer.phar update frux/foundation6-bundle
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/fruxfoundation/css/foundation.min.css') }}" />
The Foundation scripts requires jQuery.
<script type="text/javascript" src="{{ asset('bundles/fruxfoundation/js/vendor/jquery.min.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/fruxfoundation/js/vendor/what-input.min.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/fruxfoundation/js/foundation.min.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/fruxfoundation/js/app.js') }}"></script>
If you require the Modernizr build included with Foundation's sample apps, add this below foundation script block:
<script type="text/javascript" src="{{ asset('bundles/fruxfoundation/js/vendor/modernizr.js') }}"></script>
Licenses
Refer to the source code of the included files for license information