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)120.9k↑63.3%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 2d 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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

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

2221d 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

[yellowskies/qr-code-bundle

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

37711.6k](/packages/yellowskies-qr-code-bundle)[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.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[nucleos/antispam-bundle

This bundle provides some basic features to reduce spam in symfony forms.

52105.1k](/packages/nucleos-antispam-bundle)[fsi/admin-bundle

FSi Admin Bundle. Admin generator for Symfony.

5850.7k8](/packages/fsi-admin-bundle)[cg/kint-bundle

This bundle lets you use the Kint function in your Twig templates. Kint is a print\_r() replacement which produces a structured, collapsible and escaped output

21125.8k1](/packages/cg-kint-bundle)

PHPackages © 2026

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