Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Use PHP to Create an MVC Framework - Full Course

via freeCodeCamp

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Video course that walks through building a custom MVC framework in PHP from the ground up. Covers creating the application and router, Composer autoloading, project structure, views and layouts, controllers, sanitizing $_POST data, models and validation, form widgets, a .env configuration file, database connection and migrations, an ActiveRecord implementation, registration and login with session flash messages, protected routes, view components and page titles, and finally packaging the core as an installable Composer package reused across a second website and versioned with a new feature. Aimed at PHP developers who know the language basics and want to understand how frameworks like Laravel or Symfony work internally.

Syllabus

Introduction.
Show features.
Demo of the Framework.
Create Application and Router.
Enable autoloading using composer.
Implement Routing.
Create project structure.
Implement views & layouts.
Implement Controllers.
Sanitize $_POST data.
Start Registration.
Implement second layout.
Implement Models.
Implement Validation using models.
Implement form Widget.
Migrations & Connection to Database.
.env file & Application Config.
Implement Migrations.
Implement ActiveRecord & Finish Registration.
Restrict registration with the same email.
Implement Session Flash messages.
Implement Input labels.
Implement Login.
Hide Login/Register buttons When user is authorized.
Create protected routes.
Create View component & implement page titles.
Improve form widget with abstraction.
Make core installable composer package.
Create second website to use the same core.
Add new feature to core and release new version.

Taught by

freeCodeCamp.org

Reviews

Start your review of Use PHP to Create an MVC Framework - Full Course

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.