PackageTrack
Sign in Get early access

statamic/stringy

A string manipulation library with multibyte support, forked from @statamic

3.1.3 5.3M downloads/mo #1605 most downloaded on Packagist statamic/Stringy

What this package is like to depend on

Last release 4 years ago

no release in 18 months

Release timing varies

gaps range from 6 weeks to 1.9 years

Nearly every release is documented

notes for 29 of 29 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

30 releases · first in 2013

0 releases in the last 12 months

see the full history below

Release timeline

30 releases · Jul 2013 to May 2022
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 30
  1. 3.1.3 04 May 2022
    Release notes

    What's Fixed

    Open source →
  2. 3.1.2 09 Dec 2020
    Release notes

    Merge pull request #1 from simonhamp/patch-1

    Add replace config to composer.json

    Open source →
  3. 3.1.1 11 Jan 2019
    Release notes
    • [fix] Add PHP 7.3 compatibility (PCRE syntax change)
    Open source →
  4. 3.1.0 12 Jun 2017
    Release notes
    • Add $language support to slugify
    • Add bg specific transliteration
    • ЬЪ/ьъ handling is now language-specific
    Open source →
  5. 3.0.1 12 Apr 2017
    Release notes
    • Don't replace @ in toAscii
    • Use normal replacement for @ in slugify, e.g. user@home => user-home
    Open source →
  6. 3.0.0 09 Mar 2017
    Release notes
    • Breaking change: added $language parameter to toAscii, before $removeUnsupported
    • Breaking change: dropped PHP 5.3 support
    • Breaking change: any StaticStringy methods that previously returned instances of Stringy now return strings
    Open source →
  7. 2.4.0 02 Mar 2017
    Release notes
    • Add startsWithAny
    • Add endsWithAny
    • Add stripWhitespace
    • Fix error handling for unsupported encodings
    • Change private methods to protected for extending class
    • Fix safeTruncate for strings without spaces
    • Additional char support in toAscii, e.g. full width chars and wide non-breaking space
    Open source →
  8. 2.3.2 02 May 2016
    Release notes
    • Improve support without mbstring
    Open source →
  9. 2.3.1 21 Mar 2016
    Release notes
    • Always use root namespace for mbstring functions
    Open source →
  10. 2.3.0 20 Mar 2016
    Release notes
    • Add Persian characters in Stringy::charsArray()
    • Use symfony/polyfill-mbstring to avoid dependency on ext-mbstring
    Open source →
  11. 2.2.0 21 Dec 2015
    Release notes
    • isJSON now returns false for empty strings
    • Update for German umlaut transformation
    • Use reflection to generate method list for StaticStringy
    • Added isBase64 method
    • Improved toAscii char coverage
    Open source →
  12. 2.1.0 03 Sep 2015
    Release notes
    • Added simplified StaticStringy class
    • str in Stringy::create and constructor is now optional
    Open source →
  13. 2.0.0 29 Jul 2015
    Release notes
    • Removed StaticStringy class
    • Added append, prepend, toBoolean, repeat, between, slice, split, and lines
    • camelize/upperCamelize now strip leading dashes and underscores
    • titleize converts to lowercase, thus no longer preserving acronyms
    Open source →
  14. 1.10.0 23 Jul 2015
    Release notes
    • Added trimLeft, trimRight
    • Added support for unicode whitespace to trim
    • Added delimit
    • Added indexOf and indexOfLast
    • Added htmlEncode and htmlDecode
    • Added "Ç" in toAscii()
    Open source →
  15. 1.9.0 10 Feb 2015
    Release notes
    • 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
    Open source →
  16. 1.8.1 08 Jan 2015
    Release notes
    • 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
    Open source →
  17. 1.8.0 04 Jan 2015
    Release notes
    • Listed ext-mbstring in composer.json
    • Added Stringy\create function for PHP 5.6
    Open source →
  18. 1.7.0 15 Oct 2014
    Release notes
    • Added containsAll and containsAny
    • Light cleanup
    Open source →
  19. 1.6.0 14 Sep 2014
    Release notes
    • Added toTitleCase
    Open source →
  20. 1.5.2 09 Jul 2014
    Release notes
    • Announced support for HHVM
    Open source →
  21. 1.5.1 19 Apr 2014
    Release notes
    • 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
    Open source →
  22. 1.5.0 19 Mar 2014
    Release notes
    • 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()
    Open source →
  23. 1.4.0 13 Feb 2014
    Release notes
    • 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
    Open source →
  24. 1.3.0 17 Dec 2013
    Release notes
    • Additional Bulgarian support for toAscii
      • str property made private
      • Constructor casts first argument to string
      • Constructor throws an InvalidArgumentException when given an array
      • Constructor throws an InvalidArgumentException when given an object without a __toString method
    Open source →
  25. 1.2.2 05 Dec 2013
    Release notes
    • Updated create function to use late static binding
      • Added optional $replacement param to slugify
    Open source →
  26. 1.2.1 11 Oct 2013
    Release notes
    • Cleaned up tests
      • Added homepage to composer.json
    Open source →
  27. 1.2.0 15 Sep 2013
    Release notes
    • Fixed pad's use of InvalidArgumentException
      • Fixed replace(). It now correctly treats regex special chars as normal chars
      • Added additional Cyrillic letters to toAscii
      • Added $caseSensitive to contains() and count()
      • Added toLowerCase()
      • Added toUpperCase()
      • Added regexReplace()
    Open source →
  28. 1.1.0 31 Aug 2013
    Release notes
    • Fix for collapseWhitespace()
      • Added isHexadecimal()
      • Added constructor to Stringy\Stringy
      • Added isSerialized()
      • Added isJson()
    Open source →
  29. 1.0.0 01 Aug 2013
    Release notes
    • 1.0.0 release
      • Added test coverage for Stringy::create and method chaining
      • Added tests for returned type
      • Fixed StaticStringy::replace(). It was returning a Stringy object instead of string
      • Renamed standardize() to the more appropriate toAscii()
      • Cleaned up comments and README
    Open source →
  30. 1.0.0-rc.1 29 Jul 2013 pre-release
    Release notes
    • Release candidate
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive