Skip to content
/ phpfn Public

Functional PHP Toolset: Centralized monorepository for all libraries

License

Notifications You must be signed in to change notification settings

phpfn/phpfn

Repository files navigation

Functional PHP

Travis CI

PHP 7.4 PHP 8.0 Compatible License MIT

Installation

Library can be installed into any PHP application:

$ composer require phpfn/phpfn

In order to access library make sure to include vendor/autoload.php in your file.

<?php

require __DIR__ . '/vendor/autoload.php';

Usage

This package includes

  • phpfn/curry is an implementation of currying and partial application.
  • phpfn/immutable is a little helper to ensure object immutability.
  • phpfn/pipe for the ability to use a sequence of functions as a chain.
  • phpfn/placeholder is a placeholder (looks like that: _) symbol implementation.
  • phpfn/symbol for the ability to create unique identifiers within the system.

See Also