承接 dzango/twig-truncate-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dzango/twig-truncate-bundle

最新稳定版本:1.0.5

Composer 安装命令:

composer require dzango/twig-truncate-bundle

包简介

A Symfony bundle to include the TwigTruncateExtension into your app.

README 文档

README

A Symfony bundle to include the TwigTruncateExtension into your app. The TwigTruncateExtension allows you to truncate text while preserving HTML tags.

Installation

Add the bundle to your app's composer.json:

    "require": {
        "dzango/twig-truncate-bundle": "^1.0",
        ...
    }

Enable the bundle in your app's Appkernel(Only for symfony projects below 4):

# app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
        	...
            new Dzango\Bundle\TwigTruncateBundle\TwigTruncateBundle(),
            ...
        );

Note:

For symfony 4 and above the bundle will automatically enabled in your app. In case the bundle does not enabled, add it to bundle list.

#config/bundles.php
return [
    ...
    Dzango\Bundle\TwigTruncateBundle\TwigTruncateBundle::class => ['all' => true],
]

Usage

See the TwigTruncateExtension's documentation.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-07