Search by

musonacodex / marvic

musonacodex

The Minimalist, Powerful and Independent PHP Web Framework

Package info

github.com/musonacodex/marvic

pkg:composer/musonacodex/marvic

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-07-17 06:48 UTC

This package is auto-updated.

Last update: 2026-08-22 10:20:46 UTC


README

$app = Marvic::application();

$app->get('/helloworld', function($request, $response) {
    $response->send('Hello World!');
});

$app->run();

Features

  • Routing: It allows to create static and dynamic routes based on router objects or route files, andsupports 9 HTTP request methods.

  • Middlewares: They are callable functions that intercept a request before or after a handler/controller.

  • Imutable HTTP request: It is an object with rich properties and limited useful methods, such as: parsed URL, important headers; content negotiation; getting inputs, queries and files; getting headers and cookies; and so on.

  • HTTP response builder: It allows to acumulate headers, cookies and data for body before the sending. It support automatic Content-Type, output buffering, late shipping, and so on

  • Template Engines: It allows to register template engine callbacks that follow the function($view, $data) signature. The engine is selected automatically based by the file extension.