phpfn / phpfn
Centralized monorepository for functional libraries
Installs: 143
Dependents: 0
Suggesters: 0
Security: 0
Stars: 28
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/phpfn/phpfn
Requires
- php: >=7.4
- symfony/polyfill-php80: ^1.0
Requires (Dev)
- laminas/laminas-code: ~3.4
- phpunit/phpunit: ^9.0
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.0
- symfony/console: ~4.3|~5.0
- symfony/var-dumper: ~4.3|~5.0
- symplify/monorepo-builder: ^7.0
- vimeo/psalm: ^3.6
Replaces
- phpfn/curry: 2.0.1
- phpfn/immutable: 2.0.1
- phpfn/pipe: 2.0.1
- phpfn/placeholder: 2.0.1
- phpfn/symbol: 2.0.1
This package is auto-updated.
Last update: 2025-11-06 08:15:46 UTC
README
Functional PHP
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/curryis an implementation of currying and partial application.phpfn/immutableis a little helper to ensure object immutability.phpfn/pipefor the ability to use a sequence of functions as a chain.phpfn/placeholderis a placeholder (looks like that:_) symbol implementation.phpfn/symbolfor the ability to create unique identifiers within the system.