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.
NumericHelper::convertHumanReadableSizeToBytes() method (@mspirkov)StringHelper::truncateWordsByLength() method to truncate text by character length while preserving word
boundaries (@samdark)composer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 (@vjik)StringHelper::parsePath() for empty string returns path [''] instead of [] before (@vjik)StringHelper methods: trim(), ltrim() and rtrim() (@vjik)findBetween(), findBetweenFirst() and findBetweenLast() methods to StringHelper to retrieve
a substring that lies between two strings (@salehhashemi1992)StringHelper::parsePath() (@viktorprogger)WildcardPatters uses memoization and accelerates ~2 times on repeated calls (@viktorprogger)NumericHelper::normalize() (@vjik)CombinedRegexp class (@xepozz, @vjik)MemoizedCombinedRegexp decorator that caches results of CombinedRegexp (@xepozz)StringHelper::trim(), StringHelper::ltrim(), StringHelper::rtrim() (@olegbaturin)^8.0 (@xepozz)$strict parameter to Inflector::toSnakeCase() method (@arogachev)StringHelper::split() method (@vjik)StringHelper::parsePath() method annotation (@vjik)Inflector::toSnakeCase() that convert word to "snake_case" (@soodssr)StringHelper::parsePath() method (@arogachev, @vjik)How can I help you explore Laravel packages today?