pagemill/action

An action class for PHP web applications

0.1.1 2018-02-22 01:05 UTC

This package is auto-updated.

Last update: 2024-11-11 03:18:18 UTC


README

Basic Example

use PageMill\Action\Action;

$action = new Action(
    "GET",
    "/",
    []
);

$action->set_domain(function($a, $b, array $c) {
    return ["Hi!"];
});

$action->set_responder(function(array $data) {
    echo $data[0];
});

$action->__invoke();