2017 © Pedro Peláez
 

library phantasy

A basic functional programming library for PHP

image

mckayb/phantasy

A basic functional programming library for PHP

  • Friday, March 2, 2018
  • by mckayb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 29 Versions
  • 0 % Grown

The README.md

Phantasy CircleCICoverage Status

Functional Programming Helpers and Data Types for PHP., (*1)

Getting Started

Installation

composer require mckayb/phantasy, (*2)

Usage

use Phantasy\DataTypes\Maybe\Maybe;
use function Phantasy\Core\prop;

$user = [ "name" => "Foo", "email" => "foo@example.com" ];
$name = Maybe::of($user)
    ->map(prop('name'))
    ->getOrElse(null);
// "Foo"

For more information, read the docs!, (*3)

What's Included

  • Currying, Composition, Higher-Order Functions, etc
  • Maybe, Either, Reader, Writer, State, Linked List, Validation Data Types.
  • More coming...

Contributing

Find a bug? Want to make any additions? Just create an issue or open up a pull request., (*4)

Want more?

For other helpers not included in this repo, check out * Phantasy-PHP * Phantasy-Types * Phantasy-Recursion-Schemes, (*5)

Inspiration

The Versions

02/03 2018

dev-feature/monad-transformers

dev-feature/monad-transformers

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

15/02 2018

dev-master

9999999-dev

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

15/02 2018

v0.14.2

0.14.2.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

16/11 2017

v0.14.1

0.14.1.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

11/11 2017

v0.14.0

0.14.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

17/10 2017

v0.13.0

0.13.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

11/10 2017

dev-feature/unfold-null-check-instead-of-falsy

dev-feature/unfold-null-check-instead-of-falsy

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/10 2017

v0.12.0

0.12.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

28/09 2017

dev-feature/recursion-schemes

dev-feature/recursion-schemes

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

10/09 2017

v0.11.0

0.11.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

10/09 2017

dev-feature/break-up-docs-by-data-type

dev-feature/break-up-docs-by-data-type

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

04/09 2017

v0.10.0

0.10.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

30/08 2017

dev-feature/better-types

dev-feature/better-types

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/08 2017

dev-feature/set-and-collection-types

dev-feature/set-and-collection-types

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/08 2017

dev-feature/add-other-fantasyland-core-functions

dev-feature/add-other-fantasyland-core-functions

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

04/08 2017

v0.9.0

0.9.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

04/08 2017

v0.8.0

0.8.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

04/07 2017

v0.7.0

0.7.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

15/06 2017

v0.6.0

0.6.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

21/05 2017

v0.5.0

0.5.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

26/04 2017

v0.4.1

0.4.1.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

24/04 2017

v0.4.0

0.4.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

18/04 2017

v0.3.1

0.3.1.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

18/04 2017

v0.3.0

0.3.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/04 2017

v0.2.1

0.2.1.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

08/04 2017

v0.2.0

0.2.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

03/04 2017

v0.1.2

0.1.2.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

26/03 2017

v0.1.1

0.1.1.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

24/03 2017

v0.1.0

0.1.0.0

A basic functional programming library for PHP

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires