nemesarial/fontawesome-bundle

Symfony2 的 FontAwesome 3.0 Bundle

安装: 7

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

语言:JavaScript

类型:symfony-bundle

dev-master 2013-06-12 10:37 UTC

This package is not auto-updated.

Last update: 2024-09-28 14:22:38 UTC


README

当前版本

Font Awesome 3.1.1 - 由 Dave Gandy 创建与维护

安装

将包添加到你的 composer.json 文件中

// composer.json

{
    "require": {
		// ...
        "nemesarial/fontawesome-bundle": "*"
    }
}

将包添加到你的应用程序内核中

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Nemesarial\FontAwesomeBundle\QlFontAwesomeBundle(),
        // ...
    );
}

使用 Composer 下载包并安装资源

$ php composer.phar update nemesarial/fontawesome-bundle
$ php app/console assets:install --symlink web

使用 --symlink 属性创建链接而不是资源的副本

使用方法

Easy Bootstrap + Font Awesome 集成

例如,在你的模板的 head 部分

<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') }}" />

使用 LESS 进行自定义 Bootstrap + Font Awesome 集成

更多信息在这里

参考