Learn PHP Model View Controller Pattern (PHP MVC)

Learn the fundamentals of the MVC pattern with PHP, and build your own MVC framework including database support.
4.1 (21 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
224 students enrolled
$19
$75
75% off
Take This Course
  • Lectures 31
  • Length 4.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 5/2014 English

Course Description

* This course encountered a code change in late 2014 which made it obsolete. We have re-shot the entire series for 2015, so you can now learn PHP MVC with confidence.

In this course you will learn how PHP Model View Controllers (PHP MVC) work and how to create one yourself.

Using the open source and well documented PHP MVC Project as a starting point, you will learn how to incorporate Model View Controllers into your development and solidify your skills by building your own MVC based framework.

What Is Model-View-Control?

The Model-View-Control (MVC) pattern, originally formulated in the late 1970s, is a software architecture pattern built on the basis of keeping the presentation of data separate from the methods that interact with the data. In theory, a well-developed MVC system should allow a front-end developer and a back-end developer to work on the same system without interfering, sharing, or editing files either party is working on.

Even though MVC was originally designed for personal computing, it has been adapted and is widely used by web developers due to its emphasis on separation of concerns, and thus indirectly, reusable code. The pattern encourages the development of modular systems, allowing developers to quickly update, add, or even remove functionality.

What are the requirements?

  • A basic knowledge of PHP programming

What am I going to get from this course?

  • Understand MVC concepts
  • Build an MVC framework

What is the target audience?

  • Web developers
  • Software developers

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Course Introduction
01:53

You can download the source code from this lecture.

Section 2: What Is MVC?
How You Shouldn't Structure Code
Preview
07:13
What Is MVC?
Preview
06:07
Section 3: Creating an MVC Application
Introduction
10:46
Composer Requirements
01:29
Directory Structure
03:18
Parsing URLs
17:06
Creating Controllers
15:08
Accessing URL Parameters
02:40
Working with Views
16:41
Passing Data To Our View
05:37
Loading Modules
07:05
Working with the Database
19:08
Including Assets
11:25
Section 4: Course Conclusion
Course Conclusion
00:57
Section 5: Introduction to the PHP Model View Controller (Old Content)
01:55

A quick introduction in PHP Model View Controller.

Course materials can be downloaded here.

09:35

The link for this install has changed to: https://github.com/panique/mini

11:37

Following the installation, let us explore PHP Model View Controller (MVC)

04:51

This time, URL parameters are discussed.

13:09

In this tutorial, we shall look into the database together.

Section 6: Create Your Own MVC Framework (Old Content)
02:04

Introduction to more sections of this PHP Model View Controller course.

10:25

A look on our first project.

06:36

Let us delve into the structure of our first project.

14:36

Parsing URL

17:02

Routing

05:17

Working with models

09:12

Views

09:08

Assets in views

02:47

Templating

16:57

Working with the database

Request a Course
Article

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Stone River eLearning, 200,000+ Happy Udemy Students

At Stone River eLearning, technology is all we teach. If you're interested in programming, development or design - we have it covered. 

Check out our huge catalog of courses and join the over 370,000 students currently taking Stone River eLearning courses. We currently offer 100+ different technology training courses on our Stone River eLearning website and are adding new courses on hot and trending topics every month. A subscription option is available for those with a real passion for learning.

Ready to start learning?
Take This Course