2017 © Pedro Peláez
 

symfony-bundle twig-truncate-bundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

image

dzango/twig-truncate-bundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

  • Thursday, September 1, 2016
  • by opichon
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,259 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 15 % Grown

The README.md

TwigTruncateBundle

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

Installation

Add the bundle to your app's composer.json:, (*2)

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

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

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

Note:, (*4)

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., (*5)

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

Usage

See the TwigTruncateExtension's documentation., (*6)

The Versions

01/09 2016

dev-master

9999999-dev https://github.com/dzango/TwigTruncateBundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony truncate

01/09 2016

dev-updated-reqs

dev-updated-reqs https://github.com/dzango/TwigTruncateBundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony truncate

01/09 2016

1.0.4

1.0.4.0 https://github.com/dzango/TwigTruncateBundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony truncate

07/09 2014

1.0.3

1.0.3.0 https://github.com/dzango/TwigTruncateBundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony truncate

07/09 2014

1.0.2

1.0.2.0 https://github.com/dzango/TwigTruncateBundle

A Symfony 2 bundle to include the TwigTruncateExtension into your app.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig symfony2 bundle symfony truncate