PHPackages                             nickvergessen/phpbb-tool-trimmessage - 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. nickvergessen/phpbb-tool-trimmessage

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nickvergessen/phpbb-tool-trimmessage
====================================

This tool contains a class, that is able to trim a message from the phpbb message\_parser to a maximum length without breaking the bbcodes/smilies and links.

1.3.1(11y ago)18.8k21GPL-2.0PHPPHP &gt;=5.3.3

Since Jul 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nickv-phpbb/phpbb-tool-trimmessage)[ Packagist](https://packagist.org/packages/nickvergessen/phpbb-tool-trimmessage)[ Docs](https://github.com/nickvergessen/phpbb-tool-trimmessage)[ RSS](/packages/nickvergessen-phpbb-tool-trimmessage/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

phpBB Trim Message Tool
=======================

[](#phpbb-trim-message-tool)

This tool contains a class, that is able to trim a message from the phpbb message\_parser to a maximum length without breaking the bbcodes/smilies and links.

How to use
----------

[](#how-to-use)

1. Add `nickvergessen/phpbb-tool-trimmessage` as a composer dependency to your extension
2. Use the code:

    ```
     $object = new \Nickvergessen\TrimMessage\TrimMessage($message, $bbcode_uid, $length);
     // Ready to get parsed:
     echo $object->message();

    ```

How to run tests
----------------

[](#how-to-run-tests)

We use Travis-CI as a continous intergtation server and phpunit for our unit testing. See more information on the [phpBB development wiki](https://wiki.phpbb.com/Unit_Tests).

[![Build Status](https://camo.githubusercontent.com/f1a0a1cbdbdfdb99d3fe7c8a5162a1565eaddb5716d84d0603a7e2b5839f700a/68747470733a2f2f7472617669732d63692e6f72672f6e69636b76657267657373656e2f70687062622d746f6f6c2d7472696d6d6573736167652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/nickvergessen/phpbb-tool-trimmessage)

1. `php composer.phar install --dev`
2. `vendor/bin/phpunit`

Requirements
------------

[](#requirements)

- This tool requires php 5.3.3 or above. When you include this tool in your MOD, put a note about the php-version in the author notes.
- This tool does not require a specific database.

License
-------

[](#license)

[GNU Public License](license.txt)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~284 days

Total

2

Last Release

4049d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/213943?v=4)[Joas Schilling](/maintainers/nickvergessen)[@nickvergessen](https://github.com/nickvergessen)

---

Top Contributors

[![nickvergessen](https://avatars.githubusercontent.com/u/213943?v=4)](https://github.com/nickvergessen "nickvergessen (24 commits)")[![marc1706](https://avatars.githubusercontent.com/u/394418?v=4)](https://github.com/marc1706 "marc1706 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nickvergessen-phpbb-tool-trimmessage/health.svg)

```
[![Health](https://phpackages.com/badges/nickvergessen-phpbb-tool-trimmessage/health.svg)](https://phpackages.com/packages/nickvergessen-phpbb-tool-trimmessage)
```

###  Alternatives

[illuminate/conditionable

The Illuminate Conditionable package.

9043.1M32](/packages/illuminate-conditionable)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)

PHPackages © 2026

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