PHPackages                             diatem-net/twig\_truncate - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. diatem-net/twig\_truncate

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

diatem-net/twig\_truncate
=========================

Return truncated string

1.0(3y ago)04GPL-3.0+PHP

Since Dec 27Pushed 3y ago4 watchersCompare

[ Source](https://github.com/diatem-net/twig-truncate)[ Packagist](https://packagist.org/packages/diatem-net/twig_truncate)[ RSS](/packages/diatem-net-twig-truncate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Truncate
========

[](#truncate)

The Truncate allows you to truncate a string.

REQUIREMENTS
------------

[](#requirements)

Drupal 9.x.

INSTALLATION
------------

[](#installation)

Install this module as usual. Please see

USAGE
-----

[](#usage)

paramètres: - n number of characters defaukt to 150 - endchar default to '…'

{{ the\_string|truncate(100, '!') }}

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

1232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85cdb6f6b4c14a8b371959f524ba47e539da3a577161cb680ae4cde65b732f4a?d=identicon)[diatem](/maintainers/diatem)

---

Top Contributors

[![jlfritz](https://avatars.githubusercontent.com/u/9273907?v=4)](https://github.com/jlfritz "jlfritz (1 commits)")

### Embed Badge

![Health badge](/badges/diatem-net-twig-truncate/health.svg)

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

###  Alternatives

[nyg/holiday

查询是否节假日 农历 节气 中国 2倍工资 3倍工资

226.5k](/packages/nyg-holiday)[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.5k](/packages/soup-paginator)[components/jquery-htmlclean

HTML Clean plug-in for jQuery

183.1k1](/packages/components-jquery-htmlclean)

PHPackages © 2026

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