Skip to content

Releases: glowyphp/strings

3.0.0

18 Feb 16:29
Compare
Choose a tag to compare
  • Moving to PHP 7.4.0
  • add echo() method
  • add format() method
  • add crc32() method
  • add md5() method
  • add sha1() method
  • add sha256() method
  • add base64Decode() method
  • add base64Encode() method

2.5.0

29 Jan 18:04
Compare
Choose a tag to compare
  • fix contains() method
  • improve before() method

v2.4.0

05 Dec 11:34
Compare
Choose a tag to compare
  • add copy() method.

  • add ability to extend Strings class with Macros.

    use Atomastic\Strings\Strings;
    use Atomastic\Macroable\Macroable;
    
    Strings::macro('concatenate', function(string $string) {
        return $this->toString() . $string;
    });
    
    $strings = new Strings('Hello');
    
    echo $strings->concatenate(' World'));

v2.3.0

29 Nov 21:49
Compare
Choose a tag to compare
  • add replace() method.
  • add pipe() method.
  • add chars() method.
  • add getIterator() method.
  • add offsetExists() offsetGet() offsetSet() offsetExists() methods.
  • implement interface: ArrayAccess, Countable, IteratorAggregate.
  • improve methods trim() trimLeft() trimRight()
  • improve tests for replaceArray() method.
  • improve tests workflow
  • general code refactoring

v2.2.0

24 Nov 14:02
Compare
Choose a tag to compare
  • fix limit() method if string length is lower or equals to provided limit.
  • fix studly() method.
  • fix issue with encoding on new Strings object creation.
  • remove memory cache for words.
  • add tests for isSimilar() method.
  • improve tests for isBase64() method.
  • improve tests for move() method.
  • improve tests for beforeLast() method.
  • improve tests for afterLast() method.
  • improve tests for replaceFirst() method.
  • improve tests for between() method.
  • improve tests for indexOfLast() method.
  • improve tests for indexOf() method.
  • improve tests for random() method.
  • improve tests for replaceLast() method.
  • improve tests for isSerialized() method.
  • improve tests for hash() method.
  • improve tests for studly() method.
  • improve tests for __costruct() method.
  • improve tests workflow.

v2.1.0

05 Nov 08:48
Compare
Choose a tag to compare
  • add isIP method.
  • add isMAC method.
  • add isHTML method.
  • add isBoolean method.
  • add isTrue method.
  • add isFalse method.
  • improve tests for toBoolean method.

v2.0.0

28 Oct 20:29
Compare
Choose a tag to compare
  • simplify length() method.
  • add lines() method.
  • add words() method.
  • add charsFrequency() method.
  • add wordsFrequency() method.
  • add wordsSortDesc() and wordsSortAsc() methods.
  • add replaceDashes() method.
  • add replacePunctuations() method.
  • add getEncoding() and setEncoding() methods.
  • add replaceNonAlpha() method and update replaceNonAlphanumeric() method.
  • add replaceNonAlphanumeric() method.
  • add isUrl() method.
  • add isEmail() method.
  • improve stripSpaces() method.
  • rewrite method logic and rename countWords() to wordsCount()
  • rename method words() to wordsLimit() and improve tests for this method.
  • update tests for segments() method.

BREAKING CHANGES

  • USE METHOD wordsCount() INSTEAD OF countWords()
  • USE wordsLimit() INSTEAD OF words()

v1.0.0

25 Sep 16:10
Compare
Choose a tag to compare
  • Initial release