Object Oriented PHP & MVC

Object Oriented PHP & MVC

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 6.5 Hours | 825 MB

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

Table of Contents

Course Intro & Setup
1 Welcome To The Course
2 Project Files & Questions
3 XAMPP Environment Setup

Intro To OOP PHP
4 About This Section
5 What Is OOP_
6 Classes_ Properties & Methods
7 The Constructor & Destructor
8 Access Modifiers_ Getters & Setters
9 Class Inheritance
10 Static Methods & Properties

The Framework [Part 1] – The Core
11 What Is MVC_
12 Workflow Explanation
13 Creating The Folder Structure
14 Direct Everything Through index_php
15 Bootstrap FIle & Core Class
16 Loading The Controller From The URL
17 Mapping Methods & Parameters

The Framework [Part 2] – MVC Workflow
18 Base Controller Class
19 Loading Views
20 Config File & Uploader
21 Header & Footer Includes
22 Aside – PDO Crash Course
23 The Database Class – Part 1
24 The Database Class – Part 2
25 Clean Up

The App [1] – Setup & User Authentication
26 Initial App & Database Setup
26 shareposts.sql
27 Pages_ Bootstrap & Navbar
28 Creating The Users Controller
29 Register & Login Form Views
30 Form Validation
31 User Model & Email Check
32 User Registration
33 Custom Flash Messaging
34 User Login
35 User Session Data & Logout

The App [2] – Posts Functionality
36 Posts Controller
37 Posts Access Control
38 Post Model & Display
39 Add Post Form
40 Inserting Posts
41 Post Show Details Page
42 Editing Posts
43 Deleting Posts

App Deployment
44 Deploying Our App