Object Oriented PHP & MVC
4.7 (2,854 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
10,954 students enrolled

Object Oriented PHP & MVC

Build a custom object oriented PHP MVC framework and then build an application with it
4.7 (2,854 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
10,954 students enrolled
Created by Brad Traversy
Last updated 11/2017
English
French [Auto-generated], Italian [Auto-generated], 2 more
  • Portuguese [Auto-generated]
  • Spanish [Auto-generated]
Current price: $55.99 Original price: $79.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 6.5 hours on-demand video
  • 37 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
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
Course content
Expand all 44 lectures 06:39:40
+ Intro To OOP PHP
7 lectures 49:27
Access Modifiers, Getters & Setters
09:18
Class Inheritance
06:50
Static Methods & Properties
05:59
+ The Framework [Part 1] - The Core
7 lectures 58:45
Creating The Folder Structure
08:35
Direct Everything Through index.php
07:06
Bootstrap FIle & Core Class
10:43
Loading The Controller From The URL
12:00
Mapping Methods & Parameters
07:56
+ The Framework [Part 2] - MVC Workflow
8 lectures 01:19:55
Base Controller Class
07:13
Loading Views
06:11
Config File & Uploader
07:45
Header & Footer Includes
06:30
Aside - PDO Crash Course
17:59
The Database Class - Part 1
12:51
The Database Class - Part 2
16:02
Clean Up
05:24
+ The App [1] - Setup & User Authentication
10 lectures 01:45:31
Initial App & Database Setup
05:38
Pages, Bootstrap & Navbar
12:52
Creating The Users Controller
08:51
Register & Login Form Views
11:37
Form Validation
13:49
User Model & Email Check
07:59
User Registration
11:16
Custom Flash Messaging
15:30
User Login
09:26
User Session Data & Logout
08:33
+ The App [2] - Posts Functionality
8 lectures 01:16:32
Posts Controller
06:52
Posts Access Control
04:58
Post Model & Display
12:40
Add Post Form
08:39
Inserting Posts
13:06
Post Show Details Page
13:37
Editing Posts
09:38
Deleting Posts
07:02
Requirements
  • You should know basic PHP & programming concepts
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. To learn the basics, please check out the PHP Front To Back series on YouTube by Traversy Media

Who this course is for:
  • People wanting to learn advanced OOP PHP and MVC (Model View Controller)