mvccore / ext-view-helper-truncate
MvcCore - Extension - View - Helper - Truncate - truncate plain text or text with html tags to max. chars.
Installs: 355
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mvccore/ext-view-helper-truncate
Requires
- php: >=5.4.0
- mvccore/ext-view-helper: ^5.3
- mvccore/mvccore: ^5.3
This package is auto-updated.
Last update: 2025-09-21 17:44:54 UTC
README
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>