frux/foundation6-bundle

ZURB Foundation 6 Bundle for Symfony2

Installs: 1 568

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:symfony-bundle

6.1.1 2016-02-20 18:50 UTC

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

References

  1. http://foundation.zurb.com
  2. http://symfony.com