Skip to content

Releases: glowyphp/arrays

3.0.0

18 Feb 17:26
Compare
Choose a tag to compare
  • move to PHP 7.4

2.2.0

10 Dec 14:01
Compare
Choose a tag to compare
  • add whereIn() method.
  • add whereNotIn() method.
  • add whereBetween() method.
  • add whereNotBetween() method.
  • add whereLess() method.
  • add whereLessOrEqual() method.
  • add whereGreater() method.
  • add whereGreaterOrEqual() method.
  • add whereContains() method.
  • add whereNotContains() method.
  • add whereEqual() method.
  • add whereNotEqual() method.
  • add whereStartsWith() method.
  • add whereEndsWith() method.
  • add whereNewer() method.
  • add whereOlder() method.
  • add whereRegexp() method.
  • add whereNotRegexp() method.
  • add sortByDesc() method.
  • and sortByAsc() method.
  • and skip() method.
  • improve sortBy() method.

v2.1.0

05 Dec 09:51
Compare
Choose a tag to compare
  • add ability to extend Arrays class with Macros.

    use Atomastic\Arrays\Arrays;
    use Atomastic\Macroable\Macroable;
    
    Arrays::macro('customMethod', function($arg1 = 1, $arg2 = 1) {
        return $this->count() + $arg1 + $arg2;
    });
    
    $arrays = new Arrays([1, 2, 3]);
    
    echo $arrays->customMethod(1, 2);
    echo $arrays->customMethod();

v2.0.0

02 Dec 12:20
Compare
Choose a tag to compare
  • add new operators added for where() method.

    Supported operators:

    in, nin, lt, <, lte,
    >, gt, gte, >=, contains, ncontains
    >=, <=, like, nlike, regexp, nregexp,
    eq, =, neq, !=, starts_with,
    ends_with, between, nbetween, older, newer
    
  • fix issue in set() method with null key.

  • fix combine() method when two arrays are different.

  • rename sortBySubkey() method to sortBy() method.

  • improve combine() method.

  • improve tests for get() method.

  • improve tests for get() method.

  • improve tests for sort() method.

  • improve tests for first() method.

  • improve tests for last() method.

  • improve tests for random() method.

  • improve tests for sortBy() method.

  • improve tests workflow.

BREAKING CHANGES

  • USE sortBy() INSTEAD OF sortBySubkey() method.

v1.3.0

15 Nov 19:36
Compare
Choose a tag to compare
  • add where() method.
  • add dump() method.
  • add dd() method.
  • add extract() method.
  • add column() method.
  • add pipe() method.
  • add sum() method.
  • add every() method.
  • add product() method.
  • general tests improvements.
  • add new requirements for php modules: ext-json and ext-mbstring.

v1.2.0

11 Nov 18:18
Compare
Choose a tag to compare
  • add offset() method.
  • add limit() method.
  • add copy() method.
  • add except() method.
  • add nth() method.
  • add offsetGet() method.
  • add offsetSet() method.
  • add offsetExists() method.
  • add offsetUnset() method.
  • add getIterator() method.
  • add protected getArray() method.
  • add phpstan.neon config file.
  • implement ArrayAccess, ArrayIntegrator, Countable, IneratrorAggregate, Traversable.
  • improve create() method, add ability to path not only arrays inside.
  • improve flush() method - return self instead of void
  • improve filter() method - add ability to set $flag, default is ARRAY_FILTER_USE_BOTH
  • improve set() method. add ability to set $key as null.
  • fix issue for get() method in cace if $key type is int provided.
  • fix php doc sesction for all methods.
  • fix return result for delete() method if count($keys) === 0
  • fix combine() method error with not accept array|false.
  • fix toString() method when result $string is null we should return empty string instead of null.

v1.1.0

30 Oct 09:16
Compare
Choose a tag to compare
  • add next() method.
  • add prev() method.
  • add current() method.
  • add groupBy() method.

v1.0.0

03 Oct 16:17
Compare
Choose a tag to compare
  • Initial release