Course Information
Course Overview
Build a custom object oriented PHP MVC framework and then build an application with it
In this course we will go step by step to build a complete custom MVC (Model View Controller) framework Called TraversyMVC using object oriented PHP. We will build something similar to Codeigniter but much much lighter. This framework is completely open source and you are free to change the name, add stuff, etc and use it as your own. This framework will include...
A core library class to load controllers & methods from the URL (Also using .htaccess)
A base controller class to load models and views
A custom database library using PDO for all models to interact with the database using prepared statements
Not only will we create the framework but we will build an application on top of it called SharePosts which will be somewhat of a social network to share posts. This application will include..
Full user authentication
Access control for posts
Server side form validation
Bootstrap 4 UI
Posts CRUD
Helper functions (flash messaging & redirects)
We will also be deploying the application to the Internet
This is not a beginner PHP course. You should already understand things like variables, arrays, loops, functions and all of the basics of the PHP language. It is ok if you do not understand OOP fully. Before we start the framework project, we will have a crash course on object-oriented programming with PHP, where you will learn about classes, methods, properties and more.
To learn the basics, please check out the PHP Front To Back series on YouTube by Traversy Media
Course Content
- 7 section(s)
- 44 lecture(s)
- Section 1 Course Intro & Setup
- Section 2 Intro To OOP PHP
- Section 3 The Framework [Part 1] - The Core
- Section 4 The Framework [Part 2] - MVC Workflow
- Section 5 The App [1] - Setup & User Authentication
- Section 6 The App [2] - Posts Functionality
- Section 7 App Deployment
What You’ll Learn
- Build a custom MVC Framework from absolute scratch
- Build an application using your custom framework
- Create a custom PDO class to handle database interactions
- Complete user authentication using OOP & PDO
- Deploy your custom PHP application
Reviews
-
JJason B
I thought it was a good introduction to PHP.
-
CCarlo Bordin
Really clear and helpful. Might just need some minor updates because it's based on PHP 7.x but nothing really difficult. Makes it a bit more clever to solve sometimes because of this reason.
-
DDaniel Little
Sections 1-5 are great. I learned a lot about the actual MVC framework in general. I had to give up in Section 6 because I could not get past video 37 and most of the content for the rest of the video. The "foreach loop on the posts/index page does not work. It continuously returned a null array. I had to re-factor the code and use a While loop just to get the posts table content from the database to show on the page. Not sure why he turned error-checking off on Visual Studio code because he had to keep going back and fix the errors he would have seen while typing.
-
SSandor Fekete
The course did not include any practice exercises, and I think this was a big drawback.