Search by

lumi / lumi-php

Ikhlashmulya

Lumi is a simple PHP framework for building simple web applications.

v0.7.0 2026-06-04 13:08 UTC

This package is auto-updated.

Last update: 2026-09-17 05:59:05 UTC


README

Lumi is a simple PHP framework for building web applications and APIs with expressive routing, middleware, request helpers, responses, and view rendering.

Installation

Install Lumi with Composer:

composer require lumi/lumi-php

Basic Usage

<?php

require_once __DIR__ . '/vendor/autoload.php';

use Lumi\LumiPHP\Application;
use Lumi\LumiPHP\Http\Context;

$app = new Application();

$app->get('/', function (Context $ctx) {
    return $ctx->text('Hello World');
});

$app->run();

Run the app with PHP's built-in server:

php -S localhost:9000 index.php

Documentation

Read the full documentation in docs.md.