icecave/evoke
最新稳定版本:1.0.0
Composer 安装命令:
composer require icecave/evoke
包简介
A library for invoking PHP callables using positional and named arguments.
README 文档
README
Evoke is a small PHP library for invoking callables using positional and
named parameters, a little like Python's *args, **kwargs syntax.
composer require icecave/evoke
Example
use Icecave\Evoke\Invoker; $invoker = new Invoker; $func = function ($a, $b, $c = 30, $d) { return array($a, $b, $c, $d); }; $positionalArguments = array(10, 20); $keywordArguments = array('d' => '40'); $result = $invoker->invoke($func, $positionalArguments, $keywordArguments); assert($result === array(10, 20, 30, 40));
统计信息
- 总下载量: 283
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-18