PHPackages                             dzango/twig-truncate-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. dzango/twig-truncate-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

dzango/twig-truncate-bundle
===========================

A Symfony bundle to include the TwigTruncateExtension into your app.

1.0.5(6y ago)121.0k↑59.4%1MITPHPPHP &gt;=5.3.3

Since Sep 7Pushed 6y ago2 watchersCompare

[ Source](https://github.com/dzango/TwigTruncateBundle)[ Packagist](https://packagist.org/packages/dzango/twig-truncate-bundle)[ Docs](https://github.com/dzango/TwigTruncateBundle)[ RSS](/packages/dzango-twig-truncate-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (6)Used By (0)

TwigTruncateBundle
==================

[](#twigtruncatebundle)

A Symfony bundle to include the [TwigTruncateExtension](https://github.com/dzango/TwigTruncateExtension) into your app. The TwigTruncateExtension allows you to truncate text while preserving HTML tags.

Installation
------------

[](#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
-----

[](#usage)

See the [TwigTruncateExtension](https://github.com/dzango/TwigTruncateExtension)'s documentation.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~698 days

Total

4

Last Release

2266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61710b3e2bdf8cc378cb14f7e9c3d4fa753738373565270820a7be21c89f6d69?d=identicon)[opichon](/maintainers/opichon)

---

Top Contributors

[![opichon](https://avatars.githubusercontent.com/u/203745?v=4)](https://github.com/opichon "opichon (19 commits)")[![rameshlohala](https://avatars.githubusercontent.com/u/9413979?v=4)](https://github.com/rameshlohala "rameshlohala (4 commits)")

---

Tags

symfonybundletwigSymfony2symfony4symfony5symfony3truncate

### Embed Badge

![Health badge](/badges/dzango-twig-truncate-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dzango-twig-truncate-bundle/health.svg)](https://phpackages.com/packages/dzango-twig-truncate-bundle)
```

###  Alternatives

[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

567.8M161](/packages/symfony-ux-icons)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

37721.8k](/packages/yellowskies-qr-code-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16164.9k1](/packages/symfony-ux-toolkit)[fsi/admin-bundle

FSi Admin Bundle. Admin generator for Symfony.

5751.0k8](/packages/fsi-admin-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
