定制 it-blaster/typograph-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

it-blaster/typograph-bundle

最新稳定版本:v1.0.3

Composer 安装命令:

composer require it-blaster/typograph-bundle

包简介

The typograph bundle for Symfony based on E. Muravjev's Typograph

README 文档

README

Scrutinizer Code Quality Build Status License Total Downloads Latest Unstable Version Latest Stable Version

The typograph bundle for Symfony based on E. Muravjev's Typograph

Installation

Add it-blaster/typograph-bundle to your composer.json file and run composer

...
"require": {
    "it-blaster/typograph-bundle": "1.0.*"
}
...

And register the bundle in your AppKernel.php

...
new Fenrizbes\TypographBundle\FenrizbesTypographBundle(),
...

Usage

The bundle contains a TwigExtension which can be used in your templates:

{{ content | typograph }}

Configuration

The bundle allows you to pass options that E. Muravjev's Typograph supports. You can use a default config, redefine it:

fenrizbes_typograph:
    configs:
        default:
            Text.paragraphs:           on
            OptAlign.oa_oquote:        off
            OptAlign.oa_obracket_coma: off

or define your configs:

fenrizbes_typograph:
    configs:
        default:
            Text.paragraphs:           off
            OptAlign.oa_oquote:        off
            OptAlign.oa_obracket_coma: off
        articles:
            Text.paragraphs: on
        news:
            Text.paragraphs: off

and use them where you need:

{{ article.content | typograph('articles') }}

统计信息

  • 总下载量: 14.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固