ql/fontawesome-bundle

此包已被弃用,不再维护。未建议替代包。

Symfony2 的 FontAwesome Bundle

安装: 176

依赖者: 0

建议者: 0

安全: 0

星星: 1

观察者: 2

分支: 1

公开问题: 0

语言:CSS

类型:symfony-bundle

dev-master 2013-09-08 18:17 UTC

This package is not auto-updated.

Last update: 2018-01-02 07:24:46 UTC


README

当前版本

Font Awesome 3.2.1 - 由 Dave Gandy 创建和维护

安装

将包添加到您的 composer.json 文件

// composer.json

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

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

// app/AppKernel.php

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

使用 Composer 下载包并安装资源

$ php composer.phar update ql/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 集成

更多信息请参考这里

参考