v — Now Available

LavaLust
Framework

A lightweight, expressive PHP MVC framework built for developers who want structure without the bloat.

Read the Docs View on GitHub
MVC+
Architecture
4 DB
Drivers
HMVC
Module Support
REST*
API Ready

Everything you need.
Nothing you don't.

LavaLust gives you a clean, consistent structure so you can focus on building — not configuring.

🧠

MVC Architecture

Clean separation between Models, Views, and Controllers keeps your codebase maintainable as it grows.

⚙️

Flexible Routing

Define routes with GET, POST, PUT, DELETE and more. Supports named routes, closures, and grouped prefixes.

🗄️

ORM-style Models

Fluent query builder with relationships, soft deletes, timestamps, mass assignment protection, and eager loading.

📦

HMVC Modules

Scale your app with self-contained modules. Each module owns its controllers, models, and views.

🔗

REST API Support

Build JSON APIs out of the box using built-in conventions, response helpers, and content negotiation.

🛡️

Libraries & Helpers

Sessions, form validation, file uploads, pagination, encryption — batteries included where it counts.

Up and running in minutes.

Define a route, write a controller method, render a view. That's the whole loop.

app/config/routes.php
$router->get('/', 'Welcome::index');
$router->get('/users', 'Users::index');
$router->post('/users/store', 'Users::store');
app/controllers/Welcome.php
class Welcome extends Controller {
  public function index() {
    $this->call->model('UserModel');
    $data['users'] = $this->UserModel->all();
    $this->call->view('welcome', $data);
  }
}

Organized by default.

A predictable directory layout so every file has a logical home from day one.

app/config
🎮 app/controllers
🔧 app/helpers
📚 app/libraries
🌐 app/language
🛡️ app/middlewares
🔄 app/migrations
🗄 app/models
📦 app/modules
🖼 app/views
🌍 public/
runtime/
💻 console/
📐 scheme/