2017 © Pedro Peláez
 

library functional-php

Functional primitives for PHP

image

lstrojny/functional-php

Functional primitives for PHP

  • Monday, July 9, 2018
  • by lstrojny
  • Repository
  • 70 Watchers
  • 1251 Stars
  • 786,004 Installations
  • PHP
  • 40 Dependents
  • 3 Suggesters
  • 142 Forks
  • 10 Open issues
  • 19 Versions
  • 10 % Grown

The README.md

Functional PHP: Functional primitives for PHP

Test, (*1)

NOTE: functional-php used to come with a C extension that implemented most of the functions natively. As the performance differences weren’t that huge compared to the maintenance cost it has been removed., (*2)

A set of functional primitives for PHP, heavily inspired by Scala’s traversable collection, Dojo’s array functions and Underscore.js, (*3)

  • Works with arrays and everything implementing interface Traversable
  • Consistent interface: for functions taking collections and callbacks, first parameter is always the collection, then the callback. Callbacks are always passed $value, $index, $collection. Strict comparison is the default but can be changed
  • Calls 5.3 closures as well as usual callbacks
  • All functions reside in namespace Functional to not raise conflicts with any other extension or library

Functional Comic, (*4)

Installation

Run the following command in your project root:, (*5)

composer require lstrojny/functional-php

Docs

Read the docs, (*6)

Contributing

  1. Fork and git clone the project
  2. Install dependencies via composer install
  3. Run the tests via composer run tests
  4. Write code and create a PR

Mailing lists

  • General help and development list: http://groups.google.com/group/functional-php
  • Commit list: http://groups.google.com/group/functional-php-commits

Thank you

The Versions

09/07 2018

dev-master

9999999-dev

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php ~7

 

The Development Requires

by Max Beutel

functional

19/03 2018

1.8.0

1.8.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php ~7

 

The Development Requires

by Max Beutel

functional

03/01 2018

1.7.0

1.7.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php ~7

 

The Development Requires

by Max Beutel

functional

08/05 2017

1.6.0

1.6.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php ~7

 

The Development Requires

by Max Beutel

functional

19/02 2017

1.5.0

1.5.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php ~7

 

The Development Requires

by Max Beutel

functional

31/10 2016

1.4.0

1.4.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

16/08 2016

1.2.4

1.2.4.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

08/07 2016

1.2.3

1.2.3.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

01/07 2016

1.2.1

1.2.1.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

03/12 2015

1.2.0

1.2.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

26/06 2015

dev-feature/partial

dev-feature/partial

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

23/06 2015

1.0.0

1.0.0.0

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Max Beutel

functional

23/06 2015

dev-develop

dev-develop

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

12/06 2015

1.0.0-alpha5

1.0.0.0-alpha5

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Max Beutel

functional

12/06 2015

dev-dev-php56

dev-dev-php56

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Max Beutel

functional

25/03 2014

1.0.0-alpha4

1.0.0.0-alpha4

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Max Beutel

functional

12/05 2013

1.0.0-alpha3

1.0.0.0-alpha3

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Max Beutel

functional

24/03 2013

1.0.0-alpha2

1.0.0.0-alpha2

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Max Beutel

functional

19/01 2013

1.0.0-alpha1

1.0.0.0-alpha1

Functional primitives for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Max Beutel

functional