2017 © Pedro Peláez
 

library garp-functional

Utility library embracing functional programming paradigms.

image

grrr-amsterdam/garp-functional

Utility library embracing functional programming paradigms.

  • Monday, July 30, 2018
  • by harmenjanssen
  • Repository
  • 2 Watchers
  • 17 Stars
  • 13,589 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 40 Versions
  • 17 % Grown

The README.md

PHPUnit PHPCS PHPStan, (*1)

Garp Functional

Utility library embracing functional programming paradigms., (*2)

Documentation, (*3)

Developed with ❤️ by GRRR

Philosophy

Garp\Functional is a practical functional library that strives to embrace functional paradigms., (*4)

  • Functions are pure, referentially transparent, without side-effects.
  • Data immutability is favored over mutating existing properties of given parameters.
  • In general, functions are curried. Almost all of the functions in the library can be called partially applied, to a point where this makes sense.
  • Function parameters are ordered to promote currying. Data is usually the last thing to go in, making every function a fine candidate to pass to native array_map, array_filter and the like, without having to create a closure around the call.
  • Higher-order functions are provided to fill the gaps. Functions like compose, partial, partial_right or not are legos for you to use in your own implementation.
  • Nothing is type-hinted too strictly. I don't care if you pass a string or an array to prop, as long as it allows accessing members thru bracket syntax [], I'll allow it. Nothing irks me more about PHP than not being able to toss a Traversable object into the native array_map.
  • Typeclasses are added, broadening the applicability of the functions. Next to primitives, they will now work with your objects as well, so long as they implement the right interface.

Usage

Installation:, (*5)

composer require grrr-amsterdam/garp-functional

That'll do, all functions are available to you., (*6)

Read the docs for a complete reference, (*7)

Thanks

This library is inspired by beautiful languages like Haskell and Clojure,
as well as the awesome RamdaJS library., (*8)

The Versions

30/07 2018

dev-master

9999999-dev

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

10/07 2018

v2.0.2

2.0.2.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

04/07 2018

v2.0.1

2.0.1.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

04/07 2018

v2.0.0

2.0.0.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

30/06 2018

v1.0.17

1.0.17.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

17/05 2018

v1.0.16

1.0.16.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

17/05 2018

dev-merge-after-and-before-with-move-behavior

dev-merge-after-and-before-with-move-behavior

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

30/03 2018

v1.0.15

1.0.15.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

27/03 2018

v1.0.14

1.0.14.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

01/03 2018

v1.0.13

1.0.13.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

29/01 2018

v1.0.12

1.0.12.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

29/01 2018

v0.1.14

0.1.14.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

14/11 2017

v1.0.11

1.0.11.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

14/09 2017

v1.0.10

1.0.10.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

01/09 2017

v1.0.9

1.0.9.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

28/08 2017

v1.0.8

1.0.8.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

21/08 2017

v1.0.7

1.0.7.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

13/07 2017

v1.0.6

1.0.6.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

10/05 2017

v1.0.5

1.0.5.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

10/05 2017

v1.0.4

1.0.4.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

10/05 2017

v1.0.3

1.0.3.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

01/04 2017

dev-develop

dev-develop

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

31/03 2017

v1.0.2

1.0.2.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

22/03 2017

v1.0.1

1.0.1.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

07/03 2017

v1.0.0

1.0.0.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

07/03 2017

v0.1.13

0.1.13.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

06/03 2017

v0.1.12

0.1.12.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

04/03 2017

v0.1.11

0.1.11.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

28/02 2017

v0.1.10

0.1.10.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

28/02 2017

v0.1.9

0.1.9.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

28/02 2017

v0.1.8

0.1.8.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

28/02 2017

v0.1.7

0.1.7.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

20/02 2017

v0.1.6

0.1.6.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

20/02 2017

v0.1.5

0.1.5.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

18/02 2017

v0.1.4

0.1.4.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

18/02 2017

v0.1.3

0.1.3.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

17/02 2017

v0.1.2

0.1.2.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

15/02 2017

v0.1.1

0.1.1.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

09/02 2017

v0.1.0

0.1.0.0

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen

30/01 2017

dev-lenses

dev-lenses

Utility library embracing functional programming paradigms.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Harmen Janssen