ramuda

所属分类:工具库
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2023-07-27 11:35:21
上 传 者sh-1993
说明:  基于Ramda.js的PHP函数编程助手库,
(Functional programming helper library for PHP based on Ramda.js,)

文件列表:
LICENSE (1072, 2023-07-27)
composer.json (482, 2023-07-27)
src/ (0, 2023-07-27)
src/Ramuda.php (211535, 2023-07-27)

# λ ramuda Functional programming helper library for PHP based on [Ramda.js](https://ramdajs.com/) As far as I know, this is the most feature complete port of [Ramda.js](https://ramdajs.com/) for PHP with over 350 functions. Also, includes many functions from [Ramda Adjunct](https://char0n.github.io/ramda-adjunct/2.24.0/index.html) and [Ramda Extension](https://ramda-extension.firebaseapp.com/docs/). In addition, where possible, some of the functions have improved capabilities, such as **filter** and **map** handling strings and objects as well as the usual arrays. Requires PHP 5.6 or higher. Usage example: ```php use ramuda\R; $users = [ ['id'=>'45', 'fName'=>'Jane', 'lName'=>'Doe'], ['id'=>'22', 'fName'=>'John', 'lName'=>'Doe'], ['id'=>'99', 'fName'=>'John', 'lName'=>'Smith'] ]; $listToSelect = R::pipe( R::filter(R::propEq('lName', 'Doe')), R::sortBy(R::prop('id')), R::map(function($x){ return ""; }), R::join(''), R::wrapWith(['']) ); echo $listToSelect($users); ``` Produces the following string: ```html ```

近期下载者

相关文件


收藏者