functional-php

Primitives for functional programming in PHP

  • 所有者: tinkerpop/rexster
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Functional PHP: Functional primitives for PHP

Gitter
Build Status Dependency Status Average time to resolve an issue Percentage of issues still open Scrutinizer Code Quality

NOTE: functional-php used to come with a C extension that implemented most of the functions natively. As the
performance differences weren’t that huge compared to the maintenance cost it has been removed.

A set of functional primitives for PHP, heavily inspired by Scala’s traversable
collection
,
Dojo’s array functions and
Underscore.js

  • Works with arrays and everything implementing interface Traversable
  • Consistent interface: for functions taking collections and callbacks, first parameter is always the collection, then the callback.
    Callbacks are always passed $value, $index, $collection. Strict comparison is the default but can be changed
  • Calls 5.3 closures as well as usual callbacks
  • All functions reside in namespace Functional to not raise conflicts with any other extension or library

Functional Comic

Installation

Run the following command in your project root:

composer require lstrojny/functional-php

Docs

Read the docs

Contributing

  1. Fork and git clone the project
  2. Install dependencies via composer install
  3. Run the tests via composer run tests
  4. Write code and create a PR

Mailing lists

Thank you

主要指标

概览
名称与所有者tinkerpop/rexster
主编程语言Java
编程语言PHP (语言数: 7)
平台
许可证Other
所有者活动
创建于2010-02-12 03:00:02
推送于2023-12-17 03:29:41
最后一次提交2017-09-05 07:00:01
发布数17
最新版本名称2.6.0 (发布于 2014-09-17 08:33:47)
第一版名称0.1 (发布于 2010-12-14 17:35:04)
用户参与
星数431
关注者数51
派生数110
提交数1.6k
已启用问题?
问题数0
打开的问题数0
拉请求数35
打开的拉请求数7
关闭的拉请求数10
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?