kilbiller/fphp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kilbiller/fphp

最新稳定版本:v1.0.3

Composer 安装命令:

composer require kilbiller/fphp

包简介

A set of auto-curried immutable data-last functions for PHP. Inspired by lodash/fp.

README 文档

README

CircleCI codecov

A set of auto-curried immutable data-last functions for PHP. Inspired by lodash/fp.

Requires php >= 7.0

Why use this ?

  • Functions are curried and take data as their last argument so you can easily compose them.
  • Enables you to do point-free programming.
  • All functions are immutable and have similar interfaces: iteratee-first, data-last with the rest of the parameters in between.

How to install

composer require kilbiller/fphp

Pro tips

  • Functions with an arity of one are also curried so you can avoid using a callable to compose them:

    flow(flatten())([1, [2, 3]]) ==> [1, 2, 3]

Tests

To run the tests simply do composer run test. You can also check code coverage by running composer run test:coverage.

Functions

  • Collections
    • join
    • filter
    • reject
    • map
    • reduce
    • flatten
    • flatMap
    • every
    • none
    • find
    • zip
    • reverse
    • some
    • first
    • last
    • uniq
    • uniqWith
    • prop
  • Function composition
    • flow
    • compose
  • Currying
    • curry
    • curry1
    • curry2
    • curry3
    • curryN
  • Logic
    • not
  • Functions
    • negate
    • flip
  • Extras
    • identity
    • concat

统计信息

  • 总下载量: 6.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-18