Skip to content

Releases: danielstjules/Stringy

1.10.0

23 Jul 00:54

Choose a tag to compare

  • 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

10 Feb 06:31

Choose a tag to compare

  • 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

08 Jan 15:22

Choose a tag to compare

  • 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

04 Jan 07:06

Choose a tag to compare

  • Listed ext-mbstring in composer.json
  • Added Stringy\create function for PHP 5.6

Version 1.7.0

15 Oct 06:32

Choose a tag to compare

  • Added containsAll and containsAny
  • Light cleanup

Version 1.6.0

14 Sep 17:59

Choose a tag to compare

  • Added toTitleCase

Version 1.5.2

09 Jul 17:14

Choose a tag to compare

  • Announced support for HHVM

Version 1.5.1

19 Apr 15:03

Choose a tag to compare

  • 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

19 Mar 23:25

Choose a tag to compare

  • 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

13 Feb 00:27

Choose a tag to compare

  • 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