Support Features
LavaLust comes with a variety of built-in features to make development faster and easier:
Features
LavaLust ships with a practical set of built-in features covering the most common web development needs. Everything listed below is available out of the box — no third-party packages required.
Architecture
Feature |
Description |
|---|---|
MVC Pattern |
Organises code into Models, Views, and Controllers for a clean separation of data, logic, and presentation. |
Super Lightweight |
Minimal core footprint with on-demand loading — only the libraries your application actually uses are loaded per request. |
Search-Engine Friendly URLs |
Segment-based routing ( |
Middleware |
Attach reusable request/response logic (authentication, rate limiting, logging) to individual routes or route groups. |
RESTful API Support |
First-class support for |
Database
Feature |
Description |
|---|---|
Query Builder |
Fluent, chainable interface for building SQL queries safely without writing raw SQL. Supports filtering, ordering, joins, and pagination. |
Migration Class |
Version-controlled schema management. Define table structures in PHP and apply or roll back changes with a single command. |
HTTP & Routing
Feature |
Description |
|---|---|
Request Class |
Read and validate incoming data from |
Response Class |
Build and send HTTP responses — JSON, HTML, plain text, XML, file downloads, redirects, and streaming — with full header and status code control. |
File Uploading |
Validate and store uploaded files with configurable type whitelists, size limits, and destination paths. |
File Downloading |
Serve files as browser downloads or inline with automatic MIME type detection and chunked streaming. |
Page Caching |
Cache rendered page output to disk and serve it directly on subsequent requests, bypassing controller and database overhead. |
Pagination |
Generate paginated query results and the corresponding navigation links with minimal configuration. |
Forms & Validation
Feature |
Description |
|---|---|
Form Validation |
Declarative validation rules (required, min length, regex, custom callbacks) with automatic error message generation. |
Session Management |
Secure server-side session handling with support for flash data, session destruction, and configurable storage drivers. |
Encryption |
Encrypt and decrypt arbitrary strings using OpenSSL. Used internally for securing session data and cookies. |
Utilities
Feature |
Description |
|---|---|
Send plain-text or HTML emails via PHP mail, SMTP, or Sendmail with support for attachments and multiple recipients. |
|
Logger |
Write timestamped log entries at configurable severity levels
( |
Performance Class |
Measure execution time and memory usage between arbitrary checkpoints to identify bottlenecks during development. |
Config Class |
Load, read, and override configuration values at runtime from any config file without restarting the application. |
Helper Functions |
A collection of standalone utility functions for common tasks — URL generation, string manipulation, array handling, date formatting, and more. Load only the helpers your application needs. |
Feature Summary
Feature |
Category |
Quick reference |
|---|---|---|
MVC Pattern |
Architecture |
|
Lightweight Core |
Architecture |
On-demand class loading |
SEO-Friendly URLs |
Architecture |
Segment-based routing in |
Middleware |
Architecture |
|
RESTful API |
Architecture |
|
Query Builder |
Database |
|
Migrations |
Database |
|
Request |
HTTP |
|
Response |
HTTP |
|
File Uploading |
HTTP |
|
File Downloading |
HTTP |
|
Page Caching |
HTTP |
|
Pagination |
HTTP |
|
Form Validation |
Forms |
|
Session |
Forms |
|
Encryption |
Forms |
|
Utilities |
|
|
Logger |
Utilities |
|
Performance |
Utilities |
|
Config |
Utilities |
|
Helpers |
Utilities |
|