【文件属性】:
文件名称:filtratr:过滤和映射组件
文件大小:19KB
文件格式:ZIP
更新时间:2021-06-29 08:14:39
PHP
过滤器
过滤和映射组件
安装
使用通过 cli 安装:
php composer.phar require jgswift/filtratr:0.1. *
使用通过 composer.json 安装:
{
" require " : {
" jgswift/filtratr " : " 0.1.* "
}
}
描述
filtratr 是一个可扩展的轻量级过滤组件,有助于数据结构的过滤和映射。 filtratr 提供了一个函数式编程接口和一个流畅的接口。
依赖
php 5.5+
- 准综合查询
用法
筛选
根据提供的谓词从结果中包含或排除数据。 谓词可以在功能上或通过字符串来实现。
$ filter = filtratr\with ([
'foo' => 'bar' ,
'boo' => 'baz'
])-> filter ( '
【文件预览】:
filtratr-master
----.gitignore(35B)
----README.md(6KB)
----tests()
--------ObjectFiltrateTest.php(562B)
--------filtratrTestCase.php(861B)
--------Mock()
--------FiltratorTest.php(6KB)
--------QueryExtended()
--------ArrayFiltrateTest.php(578B)
--------GlobalTest.php(3KB)
--------bootstrap.php(259B)
----LICENSE(1KB)
----composer.json(772B)
----phpunit.xml.dist(877B)
----src()
--------Query()
--------Query.php(3KB)
--------ArrayQuery.php(1KB)
--------fn.php(2KB)
--------Exception.php(84B)
--------ObjectQuery.php(1KB)
--------Interfaces()
----.travis.composer.config.json(445B)
----.travis.yml(221B)