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 today

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

4041d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08db6d037c8c3330ffb98ee67491f3b9c25451c22c34603bc880a573151650ba?d=identicon)[nickvergessen](/maintainers/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

[nativephp/electron

Electron wrapper for the NativePHP framework.

519114.4k8](/packages/nativephp-electron)[kadet/keylighter

Yet another syntax highlighter for PHP

333.2k1](/packages/kadet-keylighter)[code16/formoj

Customizable form renderer

332.6k](/packages/code16-formoj)[nullthoughts/laravel-data-sync

Laravel utility to keep records synced between environments through source control

331.4k](/packages/nullthoughts-laravel-data-sync)

PHPackages © 2026

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