phpfn/phpfn

Centralized monorepository for functional libraries

Maintainers

Package info

github.com/phpfn/phpfn

Homepage

pkg:composer/phpfn/phpfn

Statistics

Installs: 143

Dependents: 0

Suggesters: 0

Stars: 28

Open Issues: 0

2.0.1 2020-11-22 21:17 UTC

This package is auto-updated.

Last update: 2026-03-06 09:06:32 UTC


README

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