functional:PHP的功能性编程库

时间:2021-04-30 03:45:51
【文件属性】:
文件名称:functional:PHP的功能性编程库
文件大小:1.88MB
文件格式:ZIP
更新时间:2021-04-30 03:45:51
php library functional-programming PHP Tarsana功能 PHP的功能性编程库。 目录 介绍 那是什么 ? 这是一个用于PHP的函数式编程库。 为什么要进行函数式编程? 面向对象还不够好吗? 好吧,这取决于您的需求。 FP和OOP有很大的不同。 我个人喜欢FP,因为代码更易于编写,测试和维护。 即使它的运行速度通常比等效的过程或OOP代码慢。 只是谷歌搜索,发现了许多用于PHP的FP库。 你为什么要写一部新书? 该库的灵感来自Ramda ,后者是Javascript的FP库。 Ramda是在下划线和lodash之后创建的,它具有比其他更好的Functional API。 这个演讲解释了如何。 因此,我想要一个具有与Ramda相同的特性的库,以支持PHP的旧版本(从5.4版开始)。 开始使用 您可以使用composer安装此库 composer require tarsana/functional 然后,可以通过导
【文件预览】:
functional-master
----.gitignore(85B)
----package.json(665B)
----package-lock.json(3KB)
----src()
--------Internal()
--------functions.php(8KB)
--------common.php(5KB)
--------list.php(35KB)
--------Classes()
--------operators.php(7KB)
--------object.php(12KB)
--------string.php(11KB)
--------math.php(5KB)
----.travis.yml(298B)
----CONTRIBUTING.md(7KB)
----LICENSE(1KB)
----performance()
--------scripts()
--------tests()
--------run.php(3KB)
----composer.json(800B)
----README.md(7KB)
----phpunit.xml(665B)
----tests()
--------ListTest.php(12KB)
--------Internal()
--------FunctionsTest.php(3KB)
--------Additional()
--------ObjectTest.php(5KB)
--------Classes()
--------CommonTest.php(2KB)
--------UnitTest.php(1KB)
--------StringTest.php(3KB)
--------MathTest.php(1KB)
--------OperatorsTest.php(2KB)
----build.php(17KB)
----docs()
--------object.md(8KB)
--------stream.md(4KB)
--------stream-operations.md(14KB)
--------operators.md(4KB)
--------string.md(5KB)
--------math.md(3KB)
--------functions.md(6KB)
--------list.md(22KB)
--------common.md(2KB)
----.editorconfig(280B)

网友评论