Complete PHP OOP Concepts for Absolute Beginners + Projects
4.4 (216 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.
32,309 students enrolled

Complete PHP OOP Concepts for Absolute Beginners + Projects

Learn PHP OOP from Scratch: Object Oriented Programming Concepts with Examples and Projects. Learn PHP OOPS Guaranteed!
4.4 (216 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.
32,309 students enrolled
Created by Srinivas Vanamala
Last updated 12/2019
English
English [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 10.5 hours on-demand video
  • 24 articles
  • 6 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Assignments
  • 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
  • Learn PHP Object Oriented Programming Concepts.
  • How to Apply OOP Concept in your Project.
  • Implement OOP Concepts like Inheritance, Polymorphism, Data Encapsulation, Data Abstraction and Overriding.
  • Learn How to Write Modular Code and Reusable Code using OOP Concepts.
  • Learn to Write Classes, Interface, Abstract Classes and Traits.
  • Learn PHP OOP with Examples, Exercises, Assignments and Quiz.
  • Understand Concepts like Magic Methods, Type Hinting, Namespaces and Dependency Injection.
  • Learn to use final, static, public, private and protected keywords.
  • Learn S.O.L.I.D - Object Oriented Principles.
  • How to Change your Procedural Programming Style to OOP Style.
  • Understand AutoLoading and Dynamic Calling with Examples.
Course content
Expand all 180 lectures 10:26:11
+ Introduction
4 lectures 05:33
Course Prerequisite
00:49
16+ hours of FREE PHP Basics Training
00:02

Download the Materials.zip file from this Lecture in resource section.

Download Course Materials
00:02
+ OOP Basics
14 lectures 01:43:05
What is Property and Methods?
06:59
What is Objects?
05:23
How to Define Objects
04:49
Define Methods with Parameters and Return Value
06:27
Use case of Users with Class and Objects
07:14
Exercise 2: Create a Files Class, Object, Property and Methods
06:03
Develop a Program using the following Instruction: 1) Create a Student Class 2) Create marks as Student Properties 3) Write examResults() Method of Student Class 4) examResults() method accepts 3 subjects marks 5) Passing Marks for each exam is 35 and Maximum Marks is 100 for each subject.
Assignment: Create a Student Class, Object, Property and Methods
1 question
Quiz: OOP Basics
3 questions
Resources: OOP Basics
00:00
Summary: What you have learned in this Section
01:02
+ $this keyword
6 lectures 21:09
Objective: What you'll learn in this Section
00:44
What is $this keyword?
03:58
How to use $this keyword
08:51
Exercise 1: Write a Student Class using $this and Access Properties and Methods.
07:14
Assignments: Write a Calculator Class using $this Keyword 1) Create a Calculator Class 2) Define $a, $b and $result as Properties 3) Write Getter and Setter Methods. 4) Write Add Method to add the values and store it in the results properties. 5) Use the getResults() Method to print the results.
Assignments: Write a Calculator Class using $this Keyword
1 question
Quiz: $this keyword
2 questions
Resources: $this Keyword
00:00
Summary: What you have learned in this Section
00:22
+ Constructor and Destructor
12 lectures 41:08
Objective: What you'll learn in this Section
00:41
What is Constructor?
04:56
Define and Call Constructor
05:35
Purpose of Constructor
03:28
Initialize the Properties with Constructor
05:38
What is Destructor?
01:56
Define and Call Destructor
02:11
Purpose of Destructor
01:38
Project: Improve Employee Class with Constructor
03:39
Exercise 1: Create Files Class with Constructor and Destructor
10:54
Quiz: Constructor and Destructor
2 questions
1) Improve the Calculator Class with Construct and Destruct methods.
Assignments: Improve the Calculator Class with Constructor and Destructor
1 question
Resources: Constructor and Destructor
00:00
Summary: What you have learned in this Section
00:32
+ Chaining Methods and Properties
4 lectures 16:01
Objective: What you'll learn in this Section
00:42
How to Chain Methods and Properties
11:32
Exercise 1: Implement Chain Method for Posts Class
03:21
Assignments: Chain the Calculator Operations
Assignments: Chain the Calculator Operations
1 question
Summary: What you have learned in this Section
00:26
+ Access Modifiers - public and private
10 lectures 30:03
Objective: What you'll learn in this Section
00:55
Understanding Access Modifiers
02:18
What is public Access Modifiers
04:27
What is private Access Modifiers
01:52
How to use private Access Modifiers
06:32
public vs private Access Modifiers
01:24
Use Case: Improve Employee Class with Access Modifiers
05:46
Exercise 1: Create the Bank Class with private Modifiers
06:15
Quiz: public and private Modifiers
2 questions
Assignments: Create Car Class with Access Modifiers 1) Define Properties as private 2) Define Getter and Setter Methods 3) Define public methods like increaseSpeed and DecreaseSpeed
Assignment: public and private Modifiers
1 question
Resources: public and private Modifiers
00:00
Summary: What you have learned in this Section
00:34
+ Inheritance
12 lectures 01:04:41
Objective: What you'll learn in this Section
02:01
What is inheritance?
07:36
Child Class Inherits from Parent Class
06:46
Child Class Own Methods and Properties
15:53
What is protected Access Modifiers
02:16
protected Access Control Modifier in Inheritance
05:15
Overriding: Child Class Override Parent Class Methods and Properties
05:22
Single and Multiple Inheritance
06:13
Use Case: Course and Lesson Class with Inheritance Concept
04:06
Exercise 1: Show Inheritance Concept with Animal Class
08:34
Quiz: Inheritance
2 questions
Assignment 1: Create Father and Son Class and Show Inheritance Concept.
Assignment: Create Father and Son Class and Show Inheritance Concept.
1 question
Resources: Inheritance
00:00
Summary: What you have learned in this Section
00:39
+ final Keyword
6 lectures 11:32
Objective: What you'll learn in this Section
01:07
What is final keyword?
03:53
Hiding: Prevent Child Class Overriding Parent Class Methods and Properties
03:01
Exercise 1: Create a Driver Class and Restrict Inheritance
02:51
Assignments: Create a Bank and User Class and use final Keyword
Assignment:
1 question
Resources
00:00
Summary: What you have learned in this Section
00:40
+ Interface
8 lectures 25:36
Objective: What you'll learn in this Section
01:25
What is Interface?
07:27
How to Declare and Implement Interface
05:45
Implement more than one Interface to Class
03:59
Use case of Interface
03:00
Exercise 1: Create a Phone Interface and Implement iOS Class
03:28
Quiz: Interface
2 questions
Assignments: Create Stock Interface and Implement it in the MyStock Class
Assignment
1 question
Resources
00:00
Summary: What you have learned in this Section
00:32
+ Abstract Classes and Methods
7 lectures 18:20
Objective: What you'll learn in this Section
00:51
What is Abstract Classes and Methods?
06:11
How to Declare Classes and Methods as Abstract
04:13
Use case of Abstract Class
01:41
Exercise 1: Define Database Class as Abstract Class
04:48
Assignments: Create Phone Class as Abstract Class with Methods and iOS Class Implements it.
Assignment
1 question
Quiz: Abstract Classes and Methods
2 questions
Resources
00:00
Summary: What you have learned in this Section
00:36
Requirements
  • You should know PHP Basics.
  • Windows or Mac Machine with PHP Installed.
  • Able to Understand English Language.
Description

Right After this course, you can write Modular Code using Classes and Objects ......

During Interview, You will be able to explain OOP concept with written examples ......

Apply the OOP Concepts right away into your existing project ......

You will understand how others develop and use OOP concept in the PHP Libraries ......

Learn PHP OOP 10X times faster with Examples, Exercises, Assignments, Blogs and Quiz ......

You will learn OOP Concept with real time Examples - Database, Files, Posts, Students, Bank, University, Course, Lectures and many more Classes ......

16+ hours of PHP OOP Training fully focused on Writing and Learning PHP OOP Concept ......

-------------------------------------------------------------------------------------------------------------

Why should I learn OOP?

Object Oriented Programming (OOP) is programming concept which brings the following benefits to your program:

  • You logical group your code into Components.

  • You build Small Components of code which can be reused.

  • Components are extend or leverage from other Components.

  • Simplify the complex concept into smaller Components.

  • Extending the component, Reusing the Component, Hiding Features and many other benefits.

If you want to be senior developer or build website for business then you should know how to write in OOP.

Even when you use the 3rd Party Libraries they are built using OOP and without knowing this OOP it is really difficult to use 3rd Party Libraries as well.

Building your projects using OOP will be easy to extend and share by other developers as well.


How this course can help me learn OOP?

This course is designed to teach you OOP in two simple ways:

  1. Understand and Able to Explain OOP Concept.

  2. Implement OOP Concept using the real time examples.

There are Exercises, Assignments and Quiz focused to make sure you go thru the practical hands-on to remember the concept thoroughly.


100% Guaranteed Learning Experience:

We teach one concept at a time and then leverage that skills to learn new topics.

Lectures are broken into specific outcome and carefully explained with theory and examples.

Every sections from Starting to Last is carefully organised into these categories:

  1. Objective - What you'll learn in this section

  2. What is it? - Explain about the Concept

  3. Examples - Convert Concept into Real time Examples.

  4. Exercises - Practice, Practice, Practice

  5. Quiz - Test yourself

  6. Assignments - Practical Handson

  7. Blogs - References

  8. Summary - What you have learned in this section

With lots of time spent in organizing these topics and making sure you get to learn PHP OOP Concept faster and with tons of supporting source code and proper guidance.


What will I do in this Course?

You will get to know the Basics OOP Concept with examples.

Learn how to apply that OOP Concept into real world examples like Database and File Operations.

We provide hands-on material upfront so that you have all tools and code to start with.

You will start with starting point source code and ending source code so that you know where you will start and end.

You will be:

  • Learning how to write PHP OOP with Examples.

  • Then do Exercise on the same topic by your own. (We provide solution as well)

  • After that take the Quiz.

  • Then take the Final Assignment Test. (Challenge yourself)

  • Finally some reference blogs for continuing your study offline.

With proper source code materials, you are never lost.

Sections have a proper outcome before we start. So, know what you will learn after the section.


Don't take our words, watch the free lessons ......

We have already trained so many students to learn PHP and based on the feedback we know our materials are useful and easy to learn.

  • 10+ hours of Course Materials.

  • Defined Outcome with Objective and Summary.

  • Access to Materials so that you can refer back.

  • Assignment and Quiz so can test yourself.

  • HD Quality and Clear Voice. (Needless to say but anyway...)

  • Forum Support.

  • many others once you get to know about us.


This course will help you learn ......

  1. Understand What is Object Oriented Programming?

  2. What is Class?

  3. How to Define a Class, Properties and Methods.

  4. How to Define Objects and Use it.

  5. Write Methods with Parameters inside the Class.

  6. Apply the OOP Concept with Users, Bank and File Class.

  7. Simple Project to Calculate Employee Salary.

  8. Learn about the importance of $this keyword.

  9. How and When to use $this keyword.

  10. Write a Student Class by using the $this keyword.

  11. Learn What is Constructor and Destructor?

  12. Define and Use Constructor in a Class.

  13. Define and Use Destructor in a Class.

  14. Purpose of Constructor and Destructor.

  15. Implement Constructor and Destructor using File Class.

  16. Learn How to Chain Methods using Posts Class.

  17. Understand the most important concept of Access Modifiers - public and private.

  18. How Access modifiers help to restrict access to methods and properties in a Class.

  19. Understand What is Inheritance?

  20. How a Child Class Inherits from Parent Class.

  21. How a Child Class Own Methods and Properties.

  22. Learn about protected Access Modifiers.

  23. Overriding: Child Class Override Parent Class Methods and Properties

  24. Learn about Single and Multiple Inheritance and which one is supported.

  25. Implement Inheritance Concept using Course and Lecture Real Time example.

  26. Learn when to use the final keyword.

  27. Hiding: Prevent Child Class Overriding Parent Class Methods and Properties.

  28. Use final keyword using a Driver Class.

  29. Learn What is Interface?

  30. How to Declare and Implement Interface.

  31. Implement more than one Interface to Class.

  32. Use case of Interface and where to use them.

  33. Create Phone Interface and Learn how to implement it in real time.

  34. What is Abstract Classes and Methods?

  35. How to Declare Classes and Methods as Abstract.

  36. Abstract Class with Non-Abstract Methods.

  37. Use case of Abstract Class.

  38. Real time example of Abstract Class.

  39. What is Static Methods and Properties?

  40. Define and Access Static Methods and Properties.

  41. self:: Keyword.

  42. Use case of Static Methods and Properties.

  43. Real time Example of Static Methods and Properties.

  44. What is Polymorphism?

  45. Example of Polymorphism.

  46. Understand Data Encapsulation Concept.

  47. Do an Example of Data Encapsulation.

  48. Understand Data Abstraction Concept.

  49. Do an Example of Data Abstraction.

  50. Understand What is Overriding?

  51. Example of Overriding.

  52. Understand Difference between Overloading vs Overriding.

  53. What is Magic Methods?

  54. Work with _set and _get, _call, _toString and _debuginfo Magic Method.

  55. Learn What is Type Hinting?

  56. Example using Type Hinting Methods with Arrays

  57. Example using Type Hinting Methods with Objects

  58. Write a Posts Class to savePost() and fetchPosts() with Proper Type Hinting

  59. What is Namespaces?

  60. Define and Use Namespace

  61. Alias Name and Global Namespace

  62. Understand What is Dependency Injection?

  63. Example of Dependency Injection.

  64. Show an Example of Dependency Injection using University and Student.

  65. Learn to Clone Objects, Serialize Objects, Cache Objects, Comparing Objects and Iterating Objects.

  66. Understand What are Traits?

  67. Define and Use Traits.

  68. Multiple Traits in one Class.

  69. Create Trait for Files Operation and use it in Posts Class.

  70. Understand What is AutoLoading?

  71. Example of Autoloading Functions.

  72. Example of Autoloading Namespace.

  73. Learn about S.O.L.I.D - Object Oriented Principles.

  74. Projects with Database Class, Students Class and University Application Class.

  75. and many more topics ......

Trust me you will learn more than what we have shown here.

Who this course is for:
  • PHP Programmers who wants to start writing PHP code using OOP.
  • Students who wants to explain OOP Concept in Interview.
  • Students who wants to understand OOP Concepts.
  • Students who want to learn how to write modular and reusable code using OOP.