akuma/ bootswatch-bundle
Akuma Bootswatch Bundle
1.0.6
2016-07-08 10:51 UTC
Requires
- php: >=5.3
- thomaspark/bootswatch: ~3.3
Requires (Dev)
- leafo/scssphp: 0.1.*
- oyejorge/less.php: ~1.5
Suggests
- knplabs/knp-menu: An object oriented menu library.
- knplabs/knp-menu-bundle: This bundle provides an integration of the KnpMenu library.
- knplabs/knp-paginator-bundle: Paginator bundle for Symfony2 to automate pagination and simplify sorting and other features.
README
AkumaBootswatchBundle 帮助您在 Symfony2 项目中集成 Bootswatch 主题。AkumaBootswatchBundle 还支持 Bootstrap 和 Font Awesome 的官方 Sass 端口。
由 Nikita Makarov 开发。
安装
首先,您需要将 akuma/bootswatch-bundle
添加到 composer.json
{ "require": { "akuma/bootswatch-bundle": "dev-master" } }
请注意,dev-master
指向最新版本。
您还必须将 AkumaBootswatchBundle
添加到您的 AppKernel.php
// app/AppKernel.php //... class AppKernel extends Kernel { //... public function registerBundles() { $bundles = array( ... new Akuma\Bundle\BootswatchBundle\AkumaBootswatchBundle() ); //... return $bundles; } //... }
配置
您还可以自定义一些配置选项
akuma_bootswatch: less_filter: ~ # Default "none", and may be one of : "less", "lessphp", "sass", "scssphp" or "none" auto_configure: assetic: true # default true twig: true # coming soon knp_menu: true # coming soon knp_paginator: true # coming soon bootswatch: path: ~ # default %kernel.root_dir%/../vendor/thomaspark/bootswatch theme: ~ # default "cosmo" fonts_dir: ~ # default %kernel.root_dir%/../web/fonts font_awesome: ~ #default true output_dir: ~ # default empty to output all into "%kernel.root_dir%/../web"
要安装字体,您需要执行以下命令
php app/console akuma:bootswatch:install
兼容性
此扩展包有两个主要依赖项,分别是 Symfony2 和 Bootswatch。
更新日志
版本 1.0.0
- 首次发布
许可证
- 此扩展包受 MIT 许可证 的许可。
- Twitter Bootstrap 的 CSS 和 JavaScript 文件在 3.1 版本之前的所有版本中受 Apache License 2.0 许可证的许可。
- Twitter Bootstrap 的 CSS 和 JavaScript 文件在 3.1 版本及以后受 MIT 许可证 许可。