PHPackages                             balpom/twig-text-extension - 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. balpom/twig-text-extension

ActiveLibrary[Templating &amp; Views](/categories/templating)

balpom/twig-text-extension
==========================

Twig template engine extension, what implements truncate and wordwrap filters without U function from Symfony framework.

v1.0.1(1y ago)08MITPHPPHP ^7.4|^8

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/balpom/twig-text-extension)[ Packagist](https://packagist.org/packages/balpom/twig-text-extension)[ Docs](https://www.balpom.ru)[ RSS](/packages/balpom-twig-text-extension/feed)WikiDiscussions main Synced 1mo ago

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

balpom/twig-text-extension
==========================

[](#balpomtwig-text-extension)

Twig "truncate" and "wordwrap" filters.
---------------------------------------

[](#twig-truncate-and-wordwrap-filters)

This Twig template engine extension implements "truncate" and "wordwrap" filters without "u" function from Symfony framework. It is created for use in Slim 4 framework, but may be used in all other purposes. The original repository, of which the extension was a part, was abandoned (  ).

### Requirements

[](#requirements)

- **PHP &gt;= 7.4**, **PHP 8**

### Installation

[](#installation)

#### Using composer (recommended)

[](#using-composer-recommended)

```
composer require balpom/twig-text-extension
```

### License

[](#license)

MIT License See [LICENSE.MD](LICENSE.MD)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~78 days

Total

2

Last Release

712d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5604ae7cc0bdc12fd8cf8867f3518ec3c9628f13707f127e700cdac1aec70b56?d=identicon)[balpom](/maintainers/balpom)

---

Top Contributors

[![balpom](https://avatars.githubusercontent.com/u/141855513?v=4)](https://github.com/balpom "balpom (3 commits)")

---

Tags

twigfiltertextextensiontruncatewordwraptwigfiltertextextensiontwig\_truncate\_filtertwig\_wordwrap\_filter

### Embed Badge

![Health badge](/badges/balpom-twig-text-extension/health.svg)

```
[![Health](https://phpackages.com/badges/balpom-twig-text-extension/health.svg)](https://phpackages.com/packages/balpom-twig-text-extension)
```

###  Alternatives

[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38201.1k10](/packages/text-template)[dzango/twig-truncate-extension

A Twig extension to truncate text while preserving HTML tags

13238.9k2](/packages/dzango-twig-truncate-extension)[redant/twig-components

Define reusable components in Twig.

3819.8k1](/packages/redant-twig-components)[bluetel-solutions/twig-truncate-extension

Twig Extension to truncate nested HTML, safely!

11100.0k](/packages/bluetel-solutions-twig-truncate-extension)[gecko-packages/gecko-twig

Additional Twig filters and tests.

1113.0k](/packages/gecko-packages-gecko-twig)

PHPackages © 2026

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