sclable/array-functions

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. The author suggests using the m-bymike/array-functions package instead.

An array wrapper to normalize php array functions, give them an ObjectOriented and functional programming approach.

0.0.3 2016-04-27 14:39 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:55:38 UTC


README

Build Status Latest Stable Version

An array wrapper to normalize php array functions, give them an ObjectOriented and functional programming approach.

Installation

With Composer:

composer require sclable/array-functions

Usage

echo ArrayWrap::range(0, 10)
    ->filter(function ($nr) { return $nr < 3; })
    ->map(function ($nr) { return "Number: $nr\n"; })
    ->reverse();

// echoes
// Number: 2
// Number: 1
// Number: 0

Contribute

Clone/fork the repository as you like. To get started, run composer install.

  • PHPUnit Tests preferred
  • PSR-2 Coding style must apply

License

see LICENSE.