NemFontAwesomeBundle - Font Awesome for Symfony2
Current Version
Font Awesome 3.1.1 - Created & Maintained by Dave Gandy, (*1)
Installation
Add bundle to your composer.json file
``` js
// composer.json, (*2)
{
"require": {
// ...
"nemesarial/fontawesome-bundle": "*"
}
}, (*3)
### Add bundle to your application kernel
``` php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Nemesarial\FontAwesomeBundle\QlFontAwesomeBundle(),
// ...
);
}
Download the bundle using Composer and Install assets
``` bash
$ php composer.phar update nemesarial/fontawesome-bundle
$ php app/console assets:install --symlink web, (*4)
Use the ``--symlink`` attribute to create links rather than copies of the resources
## Usage
### Easy Bootstrap + Font Awesome Integration
``head`` section in your template, e.g.
``` html
<link rel="stylesheet" type="text/css" href="{{ asset('..Your/Bootstrap/css..') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('bundles/qlfontawesome/css/font-awesome.min.css') }}" />
Custom Bootstrap + Font Awesome Integration using LESS
more information here, (*5)
References