Build your own MVC framework with PHP!

Опубликовано: 27 Май 2026
на канале: Coding Szy
193
11

In this PHP tutorial you will learn how to create the fundamentals of a PHP MVC (Model View Controller) framework using OOP PHP. We will go over what MVC is, how to structure a MVC project, building the MVC core components and creating a simple app. You will learn how to connect to a MySQL database to store and retrieve data.

➤ OOP PHP tutorial:    • Object Orientated Programming (OOP) inside...  

➤ .htaccess file code:
RewriteEngine On

Serve existing files or directories normally
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

Otherwise send everything to index.php
RewriteRule ^ index.php [QSA,L]

Thank you for watching this tutorial, I hope you have been able to learn about MVC and PHP! If you would like to see a continuation of this framework, comment 'I want More!'. Anyways, ill see you in the next one!

Timestamps
00:00 Intro
00:28 What is MVC?
02:15 Bootstrapping the project
07:49 Creating our Router
13:47 Creating our Controller
20:19 Utilising our Controller + views
27:37 Working with Models
39:35 Outro


#coding #php #oop #mvc #programming #developer #code #frontend #backend #tutorial