String manipulation, leveled up!
ext-mbstring
to the requirements in composer.json
Detailed changelog: https://github.com/PHLAK/Twine/compare/4.1.0...4.2.0
Str::match()
methodStr::matchAll()
methodStr
object creationStr
class from a methodDetailed changelog: https://github.com/PHLAK/Twine/compare/4.0.1...4.1.0
Str::uppercase()
Str::make()
now allows passing multiple parameters (i.e. encoding)Detailed changelog: https://github.com/PHLAK/Twine/compare/4.0.0...4.0.1
Str::chracters()
methodStr::chunk()
methodStr::encoding()
methodStr::explode()
methodStr::in()
methodStr::isEmpty()
methodStr::isNotEmpty()
methodStr::nth()
methodStr::split()
methodStr::to()
methodStr::isAlphabetic()
Str::isNumeric()
Str::isAlphanumeric()
Str::isLowercase()
Str::isUppercase()
Str::isWhitespace()
Str::isPunctuation()
Str::isPrintable()
Str::words()
will now return an array of Twine\Str
objectsTwine\Str
object's encoding
Twine\Str
objectTwine\Config\Str::setEncoding()
before newing up an objectDetailed changelog: https://github.com/PHLAK/Twine/compare/3.0.0...4.0.0
Str::echo()
methodStr::from()
methodStr::matches()
methodStr::strip()
methodStr::urlencode()
with Str::url()
Str::replace()
can now replace multiple parts of a string at onceStr::repeat()
can now take a glue string as the second parameterInvalidConfigOptionException
to ConfigException
and all exceptions now extend a base TwineException
classDetailed changelog: https://github.com/PHLAK/Twine/compare/2.3.0...3.0.0
str()
helper functionStr::words()
methodStr::camelCase()
Str::studlyCase()
Str::pascalCase()
Str::snakeCase()
Str::kebabCase()
Detailed changelog: https://github.com/PHLAK/Twine/compare/2.2.0...2.3.0
Str::join()
methodStr::append()
and Str::prepend()
now accept a variable number of argumentsDetailed changelog: https://github.com/PHLAK/Twine/compare/2.1.0...2.2.0
Str::make()
method for static constructing (thanks @roykesserwani)Str::urlencode()
methodStr::bcrypt()
methodStr::encrypt()
and Str::decrypt()
methodsStr::truncate()
method (thanks @roykesserwani)Str::similarity()
method (thanks @ernst01)Str::hex()
method
Str::hexEncode()
and Str::hexDecode()
aliasesStr::first()
and Str::last()
aliases for Str::substring()
Twine\Str
objectjson_encode
-ing a Twine\Str
object (they will be converted to a string) (thanks @erikverbeek)Str()
constructor to a stringTwine\Traits\Convinience
→ Twine\Traits\Convenience
Str::insensitiveMatch()
not returning anythingStr::lowercase(Twine\Config\Lowercase::WORDS)
not working on strings following tabs and newline characters (thanks @dhrrgn)Str::lowercase(Twine\Config\Lowercase::WORDS)
when acting on a long string (thanks @dhrrgn)Str::hex()
method when acting on long a string (thanks @dhrrgn)Detailed changelog: https://github.com/PHLAK/Twine/compare/2.0.0...2.1.0
Str::startsWith()
, Str::endsWith()
and Str::contains()
methodsStr::crypt()
method to always require a saltStr::md5()
, Str::sha1()
, Str::sha256()
methods to accept a mode flagDetailed changelog: https://github.com/PHLAK/Twine/compare/1.0.0...2.0.0
Initial stable release.