Releases: danielstjules/Stringy
Releases · danielstjules/Stringy
1.10.0
- Added trimLeft, trimRight
- Added support for unicode whitespace to trim
- Added delimit
- Added indexOf and indexOfLast
- Added htmlEncode and htmlDecode
- Added "Ç" in toAscii()
1.9.0
- Added hasUpperCase and hasLowerCase
- Added $removeUnsupported parameter to toAscii()
- Improved toAscii support with additional Unicode spaces, Vietnamese chars,
and numerous other characters - Separated the charsArray from toAscii as a protected method that may be
extended by inheriting classes - Chars array is cached for better performance
1.8.1
- Optimized chars()
- Added "ä Ä Ö Ü"" in toAscii()
- Added support for Unicode spaces in toAscii()
- Replaced instances of self::create() with static::create()
- Added missing test cases for safeTruncate() and longestCommonSuffix()
- Updated Stringy\create() to avoid collision when it already exists
Version 1.8.0
- Listed ext-mbstring in composer.json
- Added Stringy\create function for PHP 5.6
Version 1.7.0
- Added containsAll and containsAny
- Light cleanup
Version 1.6.0
- Added toTitleCase
Version 1.5.2
- Announced support for HHVM
Version 1.5.1
- Fixed toAscii() failing to remove remaining non-ascii characters
- Updated slugify() to treat dash and underscore as delimiters by default
- Updated slugify() to remove leading and trailing delimiter, if present
Version 1.5.0
- Made both str and encoding protected, giving property access to subclasses
- Added getEncoding()
- Fixed isJSON() giving false negatives
- Cleaned up and simplified: replace(), collapseWhitespace(), underscored(),
dasherize(), pad(), padLeft(), padRight() and padBoth() - Fixed handling consecutive invalid chars in slugify()
- Removed conflicting hard sign transliteration in toAscii()
Version 1.4.0
- Implemented the IteratorAggregate interface, added chars()
- Renamed count() to countSubstr()
- Updated count() to implement Countable interface
- Implemented the ArrayAccess interface with positive and negative indices
- Switched from PSR-0 to PSR-4 autoloading