Mini Framework

A lightweight, beginner-friendly PHP MVC framework inspired by Laravel

🚀

Lightweight

No Composer, no external dependencies. Pure PHP 8+ framework.

🎯

MVC Architecture

Clean separation of concerns with Models, Views, and Controllers.

🛣️

Powerful Routing

Laravel-like routing with parameters, groups, and middleware.

🛡️

Middleware Support

Protect routes, authenticate users, and more with middleware.

🎨

Tailwind CSS

Built-in Tailwind CSS support for beautiful, responsive designs.

CLI Tools

Generate controllers, models, middleware, and components quickly.

Quick Start

1. Create a Route

Route::get('/', 'HomeController@index');

2. Create a Controller

php mini make:controller HomeController

3. Create a View

// In controller:
return $this->view('home', ['title' => 'Welcome']);

📁 Folder Structure

Learn about the framework's directory structure and where to place your files.

🛣️ Routing

Define routes, handle parameters, groups, and middleware.

🎮 Controllers

Create controllers to handle requests and return responses.

💾 Models

Work with databases using PDO-based models and CRUD operations.

🎨 Views & Layouts

Create views, use layouts, and build reusable components.

🛡️ Middleware

Protect routes and add functionality with middleware.

⚡ CLI Commands

Use CLI tools to generate code and manage your application.

📡 Request & Response

Handle HTTP requests and return various response types.

🧩 Components

Create reusable view components for your application.

📚 Examples

Real-world examples and code snippets to get you started.