PHPackages                             punktde/eel-htmlcrop - 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. punktde/eel-htmlcrop

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

punktde/eel-htmlcrop
====================

Neos Eel helper for cropping string html safe

1.1.4(1mo ago)13.9k1MITPHP

Since Jan 14Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/punktDe/eel-htmlcrop)[ Packagist](https://packagist.org/packages/punktde/eel-htmlcrop)[ RSS](/packages/punktde-eel-htmlcrop/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (4)Versions (9)Used By (0)

Neos Eel helper for HTML-safe string cropping
=============================================

[](#neos-eel-helper-for-html-safe-string-cropping)

[![Travis Build Status](https://camo.githubusercontent.com/ba332384ccbfdc0757226218f74cfb5d182eef8193e981da52cb0dfa00aa722e/68747470733a2f2f7472617669732d63692e6f72672f70756e6b7444652f65656c2d68746d6c63726f702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/punktDe/eel-htmlcrop) [![Latest Stable Version](https://camo.githubusercontent.com/978c6243e08b1732d240fef238294c3b6ecba8cabd20e4ca70e14ac9c0be4b75/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7464652f65656c2d68746d6c63726f702f762f737461626c65)](https://packagist.org/packages/punktde/eel-htmlcrop) [![Total Downloads](https://camo.githubusercontent.com/7ee8d0cb10fcf77228afc6731b23561b6fdb8092f72d79268f0f668baf17ce93/68747470733a2f2f706f7365722e707567782e6f72672f70756e6b7464652f65656c2d68746d6c63726f702f646f776e6c6f616473)](https://packagist.org/packages/punktde/eel-htmlcrop)

Currently the eelHelper uses [judev/php-htmltruncator](https://github.com/judev/php-htmltruncator) package to do the cropping.

This implementation might change in future versions.

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

[](#installation)

**Install the package:**

```
composer require punktde/eel-htmlcrop

```

Usage
-----

[](#usage)

This package provides an Eel helper with the following methods:

- `HtmlCropping.cropAtWord(string $html, int $words, string $ellipsis = '…')`
- `HtmlCropping.cropAtCharacter(string $html, int $chars, string $ellipsis = '…')`

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance91

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~554 days

Total

7

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fad3b9ab04057e586b701aca7a8dbbf9598718114cdfd6bf85dada030f7688e?d=identicon)[punktde](/maintainers/punktde)

---

Top Contributors

[![andrehoffmann30](https://avatars.githubusercontent.com/u/23524251?v=4)](https://github.com/andrehoffmann30 "andrehoffmann30 (5 commits)")[![daniellienert](https://avatars.githubusercontent.com/u/642226?v=4)](https://github.com/daniellienert "daniellienert (5 commits)")[![AoezdemirPunktDe](https://avatars.githubusercontent.com/u/184867248?v=4)](https://github.com/AoezdemirPunktDe "AoezdemirPunktDe (1 commits)")[![Xathos1991](https://avatars.githubusercontent.com/u/181067222?v=4)](https://github.com/Xathos1991 "Xathos1991 (1 commits)")

---

Tags

eelneoscms

### Embed Badge

![Health badge](/badges/punktde-eel-htmlcrop/health.svg)

```
[![Health](https://phpackages.com/badges/punktde-eel-htmlcrop/health.svg)](https://phpackages.com/packages/punktde-eel-htmlcrop)
```

###  Alternatives

[neos/neos-development-collection

Neos packages in a joined repository for pull requests.

267103.9k1](/packages/neos-neos-development-collection)[gabrola/email-normalizer

A library that will normalize email addresses for cases when different email addresses all point towards a single email account

1986.7k](/packages/gabrola-email-normalizer)[ttree/eelshell

A shell for EEL expressions

178.5k](/packages/ttree-eelshell)

PHPackages © 2026

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