pagemill/action

An action class for PHP web applications

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/pagemill/action

0.1.1 2018-02-22 01:05 UTC

This package is auto-updated.

Last update: 2025-10-11 05:37:55 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();