bknasmueller / php-truncate
Abbreviates a string to a given length using a custom trailing string.
Package info
gitlab.com/bernhard.knasmueller/php-string-truncate
pkg:composer/bknasmueller/php-truncate
0.1.0
2019-05-05 11:10 UTC
Requires
- php: >=7.1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2026-03-17 20:35:53 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"
}