- php 함수형 프로그래밍 

 


* lstrojny /functional-php   <=== 권장
https://github.com/lstrojny/functional-php - 1.6k
- v1.11.0  , 2019/12
https://github.com/lstrojny/functional-php/blob/master/docs/functional-php.md

설치

composer require lstrojny/functional-php

 

사용

use Functional as _ ;

 

 

       $fn1 = function ($val, $key, $collection) {            

            return $val+1;

        };

        $ret = _\map([0,1,2,2,3], $fn1 ); 

        $ret = _\unique($ret);

 

 

 

//-----------------------------------------------
* maciejczyzewski / bottomline 
https://github.com/maciejczyzewski/bottomline - 415
- v0.1.2 , 2018/08



//--------------------------------------------------
 * Anahkiasen / underscore-php 
https://github.com/Anahkiasen/underscore-php - 1.1k
- v2.0.0 , 2015


*   brianhaveri / Underscore.php 
underscore/underscore.php
https://github.com/brianhaveri/Underscore.php - 1.2k
http://brianhaveri.github.io/Underscore.php/
- release 없음
- v1.3.1 , 2012


//--------------------------------------------------
*  yuhanz /ramda-php 
https://github.com/yuhanz/ramda-php - 14
- release 없음


* kapolos /pramda 
https://github.com/kapolos/pramda - 237
- release 없음
 v0.10.0 , 2016


*  tajawal / php-lodash 
https://github.com/tajawal/php-lodash - 23
- v1.0.10 , 2018



*  lodash-php / lodash-php 
https://github.com/lodash-php/lodash-php - 365
- v0.0.6 , 2019/3


*  ace411 /bingo-functional 
https://github.com/ace411/bingo-functional - 33
 v1.12.0 , 2019/2



* bdelespierre / php-underscore 
https://github.com/bdelespierre/php-underscore - 60
- v0.2.0 , 2015


*  dsheiko /extras 
https://github.com/dsheiko/extras - 5
- v1.0.3 , 2018

반응형
Posted by codens