Light
A simple MVC framework inspired by Laravel.
Built as a learning project in my free time.
Highlights
- SQLite Database support.
- Routing: Supports both controller actions and directly rendering views with functions.
- Middleware: Easily implement middleware for request handling.
- Helper Functions
App::get('/', [Home::class, 'index'])
->name('home');
App::post('/user', function () {
$id = request()->get('id');
$user = Database::query('SELECT * FROM users WHERE id = ?', [$id])->fetchAll();
View::show('users', [
'title' => 'User',
'data' => $user
]);
})->only('auth')->name('user');