2017 © Pedro Peláez
 

library sequence

A functional programming library for PHP

image

revinate/sequence

A functional programming library for PHP

  • Monday, June 6, 2016
  • by revinate
  • Repository
  • 54 Watchers
  • 5 Stars
  • 8,820 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 28 Versions
  • 6 % Grown

The README.md

Sequence Build Status

This library makes it easier to use functional style programming in PHP, (*1)

PHP Backward Compatibility

As we move our codebase forward, it is no longer possible for us to support older versions of PHP. With release version 1.0 and onward, we will stop supporting PHP 5.3 and PHP 5.4., (*2)

Quick Example

Install the package via composer by adding this section to the composer.json file:, (*3)

"require": {
    "revinate/sequence": "~0.4"
},

This is a tiny script to get a feeling of how Sequence works., (*4)

<?php
require_once __DIR__.'/vendor/autoload.php';

use Revinate\Sequence\Sequence;

$dataSet = array(1, 2, 3, 4, 5);
$seq = Sequence::make($dataSet);

// At this point you have a sequence and you can do bunch of cool sequence stuff with it

$even = $seq->filter(static function($n) { return $n%2 == 0; });  // nothing is evaluated here because of lazy loading
foreach($even as $num) {
    echo "$num\n";
}


$twice = $seq->map(static function($n) { return $n * 2; });
foreach($twice as $num) {
    echo "$num\n";
}

and the output of this program will be:, (*5)

2
4
2
4
6
8
10

This is just a tiny bit of all the things that can be accomplished with Sequence. For a more detailed documentation, see Wiki, (*6)

How to get involved

First clone the repo and install the dependencies, (*7)

git clone https://github.com/revinate/sequence.git
composer install

and then run the tests:, (*8)

phpunit

That's all you need to start working on Sequence. Please, include tests in your pull requests., (*9)

The Versions

06/06 2016

dev-master

9999999-dev

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

06/06 2016

0.4.6

0.4.6.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

03/06 2016

0.4.5

0.4.5.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

31/05 2016

0.4.4

0.4.4.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

30/05 2016

0.4.3

0.4.3.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

11/01 2016

0.4.2

0.4.2.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

16/12 2015

dev-addFilterOutAndFilterKeysOutFunctions

dev-addFilterOutAndFilterKeysOutFunctions

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

16/12 2015

dev-makeFnPluckWorkForMultidimensionalArraysAndObjects

dev-makeFnPluckWorkForMultidimensionalArraysAndObjects

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

16/12 2015

0.4.1

0.4.1.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

15/12 2015

0.4.0

0.4.0.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

19/11 2015

0.3.9

0.3.9.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

29/10 2015

0.3.8

0.3.8.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

27/10 2015

0.3.7

0.3.7.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

24/09 2015

0.3.6

0.3.6.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

05/09 2015

0.3.5

0.3.5.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

05/09 2015

0.3.4

0.3.4.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

31/08 2015

0.3.3

0.3.3.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

30/08 2015

0.3.2

0.3.2.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

30/08 2015

0.3.1

0.3.1.0

A functional programming library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

30/07 2015

0.2.5

0.2.5.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

27/07 2015

0.2.4

0.2.4.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jason Dent
by Eric Madar

functional

26/07 2015

0.2.3

0.2.3.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jason Dent
by Eric Madar

functional

26/07 2015

0.2.2

0.2.2.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jason Dent
by Eric Madar

functional

18/07 2015

0.2.1

0.2.1.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jason Dent
by Eric Madar

functional

29/06 2015

0.2.0

0.2.0.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jason Dent
by Eric Madar

functional

29/06 2015

0.1.4

0.1.4.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jason Dent
by Eric Madar

functional

29/06 2015

0.1.3

0.1.3.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Jason Dent
by Eric Madar

functional

20/05 2015

v0.1.0

0.1.0.0

A functional programming bundle for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jason Dent
by Eric Madar

functional