akuma/bootswatch-bundle

Akuma Bootswatch Bundle

安装: 567

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 2

开放性问题: 0

语言:HTML

类型:symfony-bundle

1.0.6 2016-07-08 10:51 UTC

This package is auto-updated.

Last update: 2024-09-05 22:47:36 UTC


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

兼容性

此扩展包有两个主要依赖项,分别是 Symfony2Bootswatch

更新日志

版本 1.0.0

  • 首次发布

许可证

  • 此扩展包受 MIT 许可证 的许可。
  • Twitter Bootstrap 的 CSS 和 JavaScript 文件在 3.1 版本之前的所有版本中受 Apache License 2.0 许可证的许可。
  • Twitter Bootstrap 的 CSS 和 JavaScript 文件在 3.1 版本及以后受 MIT 许可证 许可。