[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#768041: ITP: php5-functional -- Primitives for functional programming in PHP



Package: wnpp
Severity: wishlist
Owner: Gilles Crettenand <gilles.meier@gmail.com>

* Package name    : php5-functional
  Version         : 1.0.0~alpha4
  Upstream Author : Lars Strojny <lstrojny@php.net>
* URL             : https://github.com/lstrojny/functional-php
* License         : MIT
  Programming Lang: c
  Description     : Primitives for functional programming in PHP

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, than 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
 * C implementation for performance but a compatible userland
   implementation is provided if you can’t install PHP extensions
 * All functions reside in namespace Functional to not raise conflicts with
   any other extension or library


I will be packaging the C extension of the library. I will however not
use the PECL / PEAR version because it is out of date and the author
seems to only maintain the library through GitHub nowadays.

AFAIK, there is no current package providing functional primitives for
PHP in the current Debian archive. I really like managing my PHP
extensions through APT, so packaging this seems the best solution for
me.

The package is pretty simple, I think it won't be much of a job to
maintaint it, either myself or through the help of the PHP team.


Reply to: