Skip to content
UdemyPHPPaid courseIntermediate levelCertificate

Object Oriented PHP & MVC (Udemy.com)

Build a custom object oriented PHP MVC framework and then build an application with it

Created by: Brad Traversy

Last updated November 2017

icon
What you will 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

How it compares

Against the other 151 rated Udemy courses in PHP on CourseDuck:

  • Rating4.6 out of 5higher than 79% of them
  • Reviews5,126#6 of 152 by number of reviews
  • Length6.7 hourslonger than 56% of them
  • Last updatedNovember 2017earlier than 81% of them

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 92 / 100

icon
Course Description

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...


  1. A core library class to load controllers & methods from the URL (Also using .htaccess)

  2. A base controller class to load models and views

  3. 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..


  1. Full user authentication

  2. Access control for posts

  3. Server side form validation

  4. Bootstrap 4 UI

  5. Posts CRUD

  6. 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

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Brad Traversy

Brad Traversy has been programming for around 12 years and teaching for almost 5 years. He is the owner of Traversy Media which is a successful web development YouTube channel and specializes in everything from HTML5 to front end frameworks like Angular as well as server side technologies like Node.js, PHP and Python. Brad has mastered explaining very complex topics in a simple manner that is very understandable. Invest in your knowledge by watching Brad's courses.

icon
More courses by Brad Traversy

$16.99

$129.99

$84.99

$99.99

$119.99

$11.99

icon
More PHP courses

$11.99

Free

$64.99

$11.99

$13.99

$10.99

icon
Reviews

4.6

5,126 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Hanifi . on 7/12/2022

i don't want to say any bad words Brad ! i learn PHP with little advance and little deeper. and now : 01 : "i can't believe your terrible function ideas." 02 : "i don't believe your programming skills anymore." i can give examples and my solutions. sorry.

By Kabilan S on 5/30/2022

I am a novice with some knowledge of PHP and I was wondering about navigation across pages in the website. I got the understanding of routing, out of this course. Still, I am at a loss when passing two arguments in the url e.g., ...../controller/action/{id} & {user_id}. How to figure out this argument refers to id and that argument refers to user_id?

By Maziar Momtazi on 9/28/2020

I leave 5 Stars for Brad and all his courses because all his courses DESERVE this rating. I followed many of his free courses on YouTube. I saw many other courses by many others, some of them are great as well but for me the way his teaching is the best. There are tons of knowledge and information Brad transfering to you in almost every sentense he is saying. I recommend his courses to everyone and I believe he is one of the best instructors available!

By Derek Bearman on 12/16/2019

Fantastic course! I can't remember exactly why I was led to MVC in the first place, but I was (still am) literally just a beginner at learning PHP in general when I began this course—and now I accidentally learned PHP OOP with MVC! Obviously, I yet have a ton to learn about PHP and programming in general, but Brad is such a great teacher (both here on Udemy as well as on YouTube) that he is my go-to whenever I want/need to learn something new about web development. The only critique I would give would be to more regularly remind us simpletons (like me) exactly how the methods and properties of any given class directly relate to or associate with other classes' methods and properties (which will help instill a general understanding of the MVC model with each repetition of how X view is receiving data from Y controller which is exchanging info from Z model + the database, etc.), and how they all come together to display what the user is seeing. Overall, a great course to take for anyone even mildly interested in PHP. Thanks for the great experience and addition to my skillset, Brad!

By Abdullah gilgil on 12/1/2018

Brad is one of the best insructors on the entire web. His teaching style is absolutely amazing. This course is very good to understand oop programming and MVC The only criticism is project is tiny, only authentication and CRUD I hope Brad will make another PHP course with Jquery-Ajax for real world website like e-commerce or social network Thanks Brad

By Chris Balow on 11/19/2018

Brad is a wonderful teacher. His project is extremely well-organized, and he doesn't waste time with tangential information that isn't necessary to completing the project. He also does a wonderful job of circling back to earlier concepts to help students understand the complex structure of an MVC codebase as it evolves. My only criticism is that he do this more often, as it is so helpful in those cases where he does do it.

By Jared Abbadusky on 5/31/2018

Brad is a great instructor and I most appreciate the fact that he allows mistakes in his code instead of perfecting everything before recording. This helps amateur coders understand that no programmer is perfect, and that mistakes are going to be made. I appreciate his style of teaching and I'm more than happy to support his ability to continue cranking out new tutorials!

By Jason Williams on 5/17/2018

As always Brad offers high quality, practical and relevant content. The course offers an in depth look at Object Orientated PHP programming as well as PDO database access. Some experience of programming would be recommended however Brad always explains his contents well with easy to follow examples. Check out his other content also as from my experience you will benefit a lot from his teaching style. Brad is also on YouTube and you will see from that his high quality of content delivery which comes highly recommended.

By Ronald W. Craig on 4/27/2018

its good to see coders that run into problems and fix them by thinking thru what they did or didnt do i have watched 'PHP Front to Back', 'PDO Crash Course', 'SQL Crash Course- Beginner to Intermediate' and 'PHP OOP Beginners Crash Course' by Brad Traversy... Great Job... I have been programming webpages for over 15 years(LAMP server next to the desk 4 websites hosted there) and programming in general for over 40 years... Everyday computer has a LAMP server on it as well(local testing) Linux version Kubuntu 14.04.5... RC

By John DeLutri on 4/24/2018

This course is very well done. I have been programming with PHP for a long time, but was always afraid to learn OOP. It seemed too complicated and every time I tried to learn I would always quit after a few lessons. The way Brad explains things and shows you real world applications for the classes makes it a lot easier to understand than a lot of other courses out there. I have tried a lot of them, I know. The one little complaint I have is sometimes, albeit very rare, he tends to get into a groove with his coding and it's a little hard to keep up so you have to pause to catch up. Not that big a deal in the end. I highly recommend this course to anyone who has a good understanding of procedural PHP and wants to take it a step further.

The course is very good. I love how Brad goes right to the point. He teaches well and it's very useful information for me

It was very interesting to listen to the videos and the lectures are very easy to understand.

Showing 12 of 66 reviews