- Bug #138: Explicitly mark nullable parameters (@ferrumfist)
- New #137: Add
StringHelper::matchAnyRegex()
method as a facade forCombinedRegexp
(@vjik) - Enh #128: Add more specific psalm type for result of
StringHelper::base64UrlEncode()
method (@vjik)
- New #118: Add
findBetween()
,findBetweenFirst()
andfindBetweenLast()
methods toStringHelper
to retrieve a substring that lies between two strings (@salehhashemi1992) - Enh #121: Don't use regexp if there is no delimeter in the path in
StringHelper::parsePath()
(@viktorprogger)
- Enh #117:
WildcardPatters
uses memoization and accelerates ~2 times on repeated calls (@viktorprogger)
- Enh #114: Add stringable object support to
NumericHelper::normalize()
(@vjik)
- New #102, #106: Add
CombinedRegexp
class (@xepozz, @vjik) - New #103: Add
MemoizedCombinedRegexp
decorator that caches results ofCombinedRegexp
(@xepozz) - New #104: Add methods
StringHelper::trim()
,StringHelper::ltrim()
,StringHelper::rtrim()
(@olegbaturin) - Enh #103: Raise required PHP version to
^8.0
(@xepozz) - Enh #106: Using fully-qualified function calls to improve performance (@vjik)
- Enh #111: Minor refactoring (@Tigrov)
- Enh #83: Make minor refactoring with Rector help (@vjik)
- Enh #92: Add
$strict
parameter toInflector::toSnakeCase()
method (@arogachev)
- Bug #105: Fix incorrect split UTF-8 strings in
StringHelper::split()
method (@vjik)
- Enh #85: Improve
StringHelper::parsePath()
method annotation (@vjik)
- New #75: Add method
Inflector::toSnakeCase()
that convert word to "snake_case" (@soodssr) - New #81: Add
StringHelper::parsePath()
method (@arogachev, @vjik)
- Chg #67: Remove
\Yiisoft\Strings\WildcardPattern::withoutEscape()
(@samdark) - Chg #67: Remove
\Yiisoft\Strings\WildcardPattern::withExactLeadingPeriod()
(@samdark) - Enh #67: Add
**
, match anything including/
, to\Yiisoft\Strings\WildcardPattern
, removewithExactSlashes()
andwithEnding()
(@samdark) - Enh #67: Allow specifying delimiters for
*
(@samdark) - Enh #67: Add
\Yiisoft\Strings\WildcardPattern::isDynamic()
(@samdark) - Enh #67: Add
\Yiisoft\Strings\WildcardPattern::quote()
(@samdark)
- Enh #62: Add method
StringHelper::split()
that split a string to array with non-empty lines (@vjik) - Enh #63: Add method
NumericHelper::isInteger()
that checks whether the given string is an integer number (@vjik) - Enh #64: Add support of a boolean values to
NumericHelper::normalize()
(@vjik)
- Enh #52: Allow turning off options in
WildcardPattern
(@vjik) - Enh #51: Add an option
withEnding()
toWildcardPattern
for match ending of testing string (@vjik) - Bug #44:
NumericHelper::toOrdinal()
throws an error for numbers with fractional part (@vjik)
- Enh #40: Use
str_starts_with()
andstr_ends_with()
if available (@viktorprogger) - Bug #43:
NumericHelper::normalize()
throws an error forfloat
orint
values in PHP 8 (@vjik)
- Initial release.