PHP MIT

php-mvc

A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.

D

daveh

Dernière activité 14 févr. 2026
daveh/php-mvc

817

étoiles

302

forks

27

issues ouvertes

mvc-frameworkphpphp-mvc

Ce README est souvent en anglais.

Welcome to the PHP MVC Framework

This is a simple MVC framework for building web applications in PHP. It's free and open-source.

It was created for the Write PHP Like a Pro: Build an MVC Framework from Scratch course.

That course explains how the framework is put together, building it step-by-step, from scratch. If you've taken the course, then you'll already know how to use it.

If not, please look at the example code in the config and src/App folders for examples of how to use it.

DISCLAIMER

This framework was developed as a teaching example on the aforementioned course. The idea is that by developing this framework on that course, you'll understand how frameworks like Laravel work. No warranty is provided. For more details please see the licence.

Starting an Application using this Framework

  1. First, download the framework, either directly or by cloning the repo.
  2. Configure your web server to have the public folder as the web root.
  3. Make a copy of the .env.example file and call it .env, and enter your database configuration data.
  4. Create routes, controllers, views, models, middleware etc.

Build This Framework From Scratch

Signup for the course here and understand how this framework is built from scratch, putting it all together step by step.

Projets similaires

Phalcon MVC Examples

PHPmvc-patternphalcon-mvcphp
Pphalcon
815 étoiles313

An MVC framework for WordPress

PHP
Ttombenner
625 étoiles168

Laravel is a web application framework with expressive, elegant syntax.

PHPframeworklaravelphp
Llaravel
34,9 k étoiles12 k