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: 2025-12-23 19:26:48 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"
}