bknasmueller / php-truncate
Abbreviates a string to a given length using a custom trailing string.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/bknasmueller/php-truncate
Requires
- php: >=7.1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2026-01-06 19:43:57 UTC
README
A PHP string truncation library with multibyte support.
Usage
StringTruncate::truncate('abcdefghijklmnopqrstuvwxyz', 10);
Installation
Include the following in your composer.json file:
"require": {
"bknasmueller/php-truncate": "~0.1.0"
}