ql / fontawesome-bundle
此包已被弃用,不再维护。未建议替代包。
Symfony2 的 FontAwesome Bundle
dev-master
2013-09-08 18:17 UTC
Requires
- php: >=5.3.3
- symfony/framework-bundle: >=2.2
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') }}" />