A lightweight MVC framework built from scratch in PHP.
This project demonstrates how to build a reusable PHP framework architecture with essential MVC components, routing, database interaction, authentication, middleware support, and more.
You can find the complete source code here:
🔗 https://github.com/thecodeholic/tc-php-mvc-core
🔗 https://github.com/thecodeholic/php-mvc-framework
This framework includes the following features:
- ✅ Custom Routing System
- ✅ Composer Integration
- ✅ Controllers
- ✅ Views and Layouts
- ✅ Models
- ✅ Database Migrations
- ✅ Form Widget Classes
- ✅ Request Data Processing
- ✅ Data Validation
- ✅ User Registration and Login
- ✅ Simple Active Record Implementation
- ✅ Session Flash Messages
- ✅ Middleware Support
- ✅ Application Events
- ✅ Reusable and Installable Framework Core
The goal of this project is to understand how modern PHP frameworks work internally by creating an MVC framework without relying on existing frameworks.
The framework provides a clean structure for building scalable PHP applications while keeping the core components reusable and extendable.
Clone the repository:
git clone https://github.com/thecodeholic/tc-php-mvc-core
git clone https://github.com/thecodeholic/php-mvc-framework
