zvax/framework

Library to make websites

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zvax/framework

dev-master 2025-10-04 20:01 UTC

This package is auto-updated.

Last update: 2025-10-04 20:13:36 UTC


README

Opinionated tools for php website creation.

bootstrap.php, invoked from a public index.php probably

<?php declare(strict_types=1);

$routes = new \Zvax\Framework\Http\Routes();

$routes->addRequestMiddlewareGroup(function (Routes $routes) {
    $routes->get('/loggedArea', LoggedArea::class);
}, SomeSessionCheckMiddleware::class);

$routes->get('/', Login::class);

$app = new \Zvax\Framework\App($routes, $auryn);

$response = $app->run(\Zvax\Framework\Http\Request::fromGlobals());

\Zvax\Framework\Http\Sapi::emit($response);