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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?