2017 © Pedro Peláez
 

library evoke

A library for invoking PHP callables using positional and named arguments.

image

icecave/evoke

A library for invoking PHP callables using positional and named arguments.

  • Wednesday, October 8, 2014
  • by jmalloc
  • Repository
  • 1 Watchers
  • 2 Stars
  • 232 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Evoke

Build Status Code Coverage Latest Version, (*1)

Evoke is a small PHP library for invoking callables using positional and named parameters, a little like Python's *args, **kwargs syntax., (*2)

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));

The Versions

08/10 2014

dev-develop

dev-develop https://github.com/IcecaveStudios/evoke

A library for invoking PHP callables using positional and named arguments.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

function callable call parameters arguments keyword invoke

09/09 2014

dev-master

9999999-dev https://github.com/IcecaveStudios/evoke

A library for invoking PHP callables using positional and named arguments.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

function callable call parameters arguments keyword invoke

09/09 2014

1.0.0

1.0.0.0 https://github.com/IcecaveStudios/evoke

A library for invoking PHP callables using positional and named arguments.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

function callable call parameters arguments keyword invoke

06/06 2013

0.1.0

0.1.0.0 https://github.com/IcecaveStudios/evoke

A library for Invoking PHP callables using positional and named arguments.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

function callable call parameters arguments keyword invoke