PHPackages                             hashandsalt/kirby-chopper - 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. hashandsalt/kirby-chopper

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

hashandsalt/kirby-chopper
=========================

Kirby 3 Chopper plugin for truncating text

3.0.0(4y ago)251.4k3MITPHP

Since Mar 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/HashandSalt/chopper)[ Packagist](https://packagist.org/packages/hashandsalt/kirby-chopper)[ RSS](/packages/hashandsalt-kirby-chopper/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Kirby Chopper Plugin for Kirby 3
================================

[](#kirby-chopper-plugin-for-kirby-3)

Kirby's built in [Excerpt](https://getkirby.com/docs/reference/templates/field-methods/excerpt) takes an all or nothing approach to stripping html tags, and only works on characters. This plugin creates excerpts from fields via KirbyText but keeps any HTML tags, with the ability to define the tags you wish to keep. Also works on whole words, as well as characters.

Commerical Usage
----------------

[](#commerical-usage)

This plugin is free but if you use it in a commercial project please consider to

- [make a donation 🍻](https://paypal.me/hashandsalt?locale.x=en_GB) or
- [buy a Kirby license using this affiliate link](https://a.paddle.com/v2/click/1129/36141?link=1170)

Installation
------------

[](#installation)

### Manual

[](#manual)

To use this plugin, place all the files in `site/plugins/chopper/`.

### Composer

[](#composer)

```
composer require hashandsalt/kirby-chopper

```

Usage
-----

[](#usage)

Defaults to limiting to 250 charchters, maintaining whole words, so if you just want 20 words and an ellipsis on the end:

```

```

To set number of charachters to trim to

```

```

To trim to 50 charachters, maintaining whole words, append an arrow on the on the end:

```

```

To change the default list of kept tags, add this line to your `config.php` and amend accordingly:

```
'hashandsalt.chopper.keep' => '',

```

To append every time an arrow at the end, add this line to your `config.php`:

```
'hashandsalt.chopper.ellipsis' => '→',

```

Options
-------

[](#options)

Full list of options

```
'hashandsalt.chopper.ellipsis' => '…',
'hashandsalt.chopper.exact' => true,
'hashandsalt.chopper.html' => true,
'hashandsalt.chopper.trimWidth' => false,
'hashandsalt.chopper.keep' => '',

```

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

[](#requirements)

This plugin was built using Kirby 3.6. Will not work on earlier versions. Requires PHP 7.4+

Credits
-------

[](#credits)

Based on text functions in CakePHP

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 88% 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 ~379 days

Total

4

Last Release

1536d ago

Major Versions

2.0.3 → 3.0.02022-04-16

### Community

Maintainers

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

---

Top Contributors

[![HashandSalt](https://avatars.githubusercontent.com/u/28439755?v=4)](https://github.com/HashandSalt "HashandSalt (22 commits)")[![yoanmalie](https://avatars.githubusercontent.com/u/3357171?v=4)](https://github.com/yoanmalie "yoanmalie (2 commits)")[![camppacifictech](https://avatars.githubusercontent.com/u/25474946?v=4)](https://github.com/camppacifictech "camppacifictech (1 commits)")

### Embed Badge

![Health badge](/badges/hashandsalt-kirby-chopper/health.svg)

```
[![Health](https://phpackages.com/badges/hashandsalt-kirby-chopper/health.svg)](https://phpackages.com/packages/hashandsalt-kirby-chopper)
```

###  Alternatives

[medienbaecker/kirby-modules

Easily add modules to your pages

895.4k1](/packages/medienbaecker-kirby-modules)[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14695.1k1](/packages/distantnative-retour-for-kirby)[arnoson/kirby-vite

Vite helper for Kirby CMS

9763.1k3](/packages/arnoson-kirby-vite)[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8613.8k](/packages/belugadigital-kirby-navigation)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4147.7k1](/packages/bnomei-kirby3-dotenv)[fabianmichael/kirby-meta

Your all-in-one powerhouse for any SEO and metadata needs imaginable.

7011.3k1](/packages/fabianmichael-kirby-meta)

PHPackages © 2026

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