Skip to content

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

License

Notifications You must be signed in to change notification settings

m-bymike/array-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sclable Array Functions

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages