PHPackages                             marc1706/phpbb-text-shortener - 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. marc1706/phpbb-text-shortener

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

marc1706/phpbb-text-shortener
=============================

Library for shortening post text in phpBB 3.2.x

v0.3.0(3y ago)11.1k↓100%1MITPHPPHP &gt;=7.1.3

Since Jan 10Pushed 3y ago2 watchersCompare

[ Source](https://github.com/marc1706/phpbb-text-shortener)[ Packagist](https://packagist.org/packages/marc1706/phpbb-text-shortener)[ Docs](https://www.m-a-styles.de)[ RSS](/packages/marc1706-phpbb-text-shortener/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

phpbb-text-shortener library
============================

[](#phpbb-text-shortener-library)

### About

[](#about)

phpbb-text-shortener is a PHP library for shortening post text in phpBB 3.3.x to a specified length.

### Requirements

[](#requirements)

PHP 7.1.3 or newer is required for this library to work.

### Installation

[](#installation)

It is recommend to install the library using composer. Just add the following snippet to your composer.json:

```
  "require": {
    "marc1706/phpbb-text-shortener": "~0.2"
  },

```

### Usage

[](#usage)

Create an instance of text shortener:

```
$shortener = new \Marc1706\TextShortener\Shortener();

```

Grab the database representation of a post from the database and pass it to the shortener (e.g. to a length of 200 characters):

```
$shortener->setText($postText)
	->shortenText(200);

```

### Automated Tests

[](#automated-tests)

The library is being tested using unit tests to prevent possible issues.

[![Build Status](https://github.com/marc1706/phpbb-text-shortener/actions/workflows/main.yml/badge.svg)](https://github.com/marc1706/phpbb-text-shortener/actions/workflows/main.yml)

### License

[](#license)

[The MIT License (MIT)](http://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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 ~646 days

Total

5

Last Release

1189d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

v0.2.0PHP &gt;=7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/f707b578266806b276af3e6fbd52c84856c8de62f4627cca5190d31df1b7bc10?d=identicon)[marc1706](/maintainers/marc1706)

---

Top Contributors

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

---

Tags

phpphpbbminifyextensionsextensionbbcodepostshortening

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marc1706-phpbb-text-shortener/health.svg)

```
[![Health](https://phpackages.com/badges/marc1706-phpbb-text-shortener/health.svg)](https://phpackages.com/packages/marc1706-phpbb-text-shortener)
```

###  Alternatives

[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[christianklisch/slim-minify

Minify html output in slim framework

3831.9k1](/packages/christianklisch-slim-minify)[abm/sassphp

PHP bindings to libsass - fast, native Sass parsing in PHP!

559.2k](/packages/abm-sassphp)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)

PHPackages © 2026

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