mvccore/ext-view-helper-truncate

MvcCore - Extension - View - Helper - Truncate - truncate plain text or text with html tags to max. chars.

Maintainers

Package info

github.com/mvccore/ext-view-helper-truncate

pkg:composer/mvccore/ext-view-helper-truncate

Statistics

Installs: 355

Dependents: 3

Suggesters: 0

Stars: 1

Open Issues: 0

v5.3.0 2024-11-21 15:01 UTC

This package is auto-updated.

Last update: 2026-02-21 18:28:06 UTC


README

Latest Stable Version License PHP Version

Truncate plain text or text with html tags by given max. characters number and add three dots at the end.

Installation

composer require mvccore/ext-view-helper-truncate

Example

<b><?php echo $this->Truncate('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 27); ?></b>
<b>Lorem ipsum dolor sit amet...</b>