itlized/zurb-foundation

Zurb Foundation Bundle For Symfony

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

v5.3.1 2014-07-25 17:31 UTC

This package is not auto-updated.

Last update: 2024-04-13 11:51:16 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

References

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