Skip to content
/ pamda Public

A PHP function programming lib same as Ramda.js

Notifications You must be signed in to change notification settings

scplay/pamda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pamda

A PHP function programming lib same as Ramda.js (php version >= 7.1)

install

composer require zeonwang/pamda

usage

use Pamda\Pamda;
        
$blankTo = Pamda::curryN(3, 'preg_replace')('/\s+/');
    
$blankToSlash = $blankTo('/');
echo $blankToSlash('a b c'); // => "a/b/c"

$blankToDash = $blankTo('-');
echo $blankToDash('a b c'); // => "a-b-c"

About

A PHP function programming lib same as Ramda.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages