Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ Microsoft AZ-900
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Personal Development Mindfulness Personal Transformation Meditation Life Purpose Coaching Neuroscience
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Data Science
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ Unreal Engine Blueprints 2D Game Development Blender
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
Development Web Development PHP

Object Oriented PHP & MVC

Build a custom object oriented PHP MVC framework and then build an application with it
Rating: 4.7 out of 54.7 (3,539 ratings)
13,294 students
Created by Brad Traversy
Last updated 11/2017
English
French [Auto], Italian [Auto], 
30-Day Money-Back Guarantee

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
Curated for the Udemy for Business collection

Course content

7 sections • 44 lectures • 6h 39m total length

  • Preview06:12
  • Preview01:56
  • Preview08:31

  • Preview01:09
  • Preview05:47
  • Classes, Properties & Methods
    Preview09:45
  • Preview10:39
  • Access Modifiers, Getters & Setters
    09:18
  • Class Inheritance
    06:50
  • Static Methods & Properties
    05:59

  • What Is MVC?
    Preview04:30
  • Preview07:55
  • 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

  • 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

  • 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

  • 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

  • Deploying Our App
    12:51

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)

Featured review

Maziar Momtazi
Maziar Momtazi
1 course
1 review
Rating: 5.0 out of 53 months ago
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!

Instructor

Brad Traversy
Full Stack Web Developer & Instructor at Traversy Media
Brad Traversy
  • 4.7 Instructor Rating
  • 98,652 Reviews
  • 253,950 Students
  • 14 Courses

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.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.