yiisoft/strings
Yii Strings provides fast, multibyte-safe string utilities for PHP: StringHelper and NumericHelper, Inflector (pluralize, slug), wildcard pattern matching, and optimized combined regex matching with optional memoization.
yiisoft/strings provides a focused set of PHP 8.1+ utilities for working with strings, numeric strings, and efficient pattern/regexp matching. It’s designed for reliable multibyte handling (requires mbstring) and common text transformations used in applications and frameworks.
Use it to count words, slice/replace substrings, build slugs, pluralize words, and match values against wildcards or optimized combined regular expressions.
How can I help you explore Laravel packages today?