PHP Tutorial: Learn OOPs PHP for Beginners

Course Topic and complete OOP concepts given below:-

  1. OOP Basics Introduction
  2. $this keyword
  3. Constructor and Destructor
  4. Chaining Methods and Properties
  5. Access Modifiers – Public, Private and Protected
  6. Inheritance
  7. Final Keyword
  8. Interface
  9. Abstract Classes and Methods
  10. Static Methods & Properties
  11. Polymorphism
  12. Data Encapsulation
  13. Data Abstraction
  14. Overriding
  15. Magic Methods
  16. Type Hinting
  17. Dependency Injection
  18. Working with Objects
  19. Traits and Code Inclusion
  20. Auto Loading and Dynamic Calling
  21. S.O.L.I.D Object Oriented Principles
  22. Final Project 1 – Database class with OOP
  23. Final Project 2 – CRUD Operations with POST Class with OOP

COURSE PRE-REQUISITE

  • This course assumes that you have PHP basics knowledge or taken few beginners courses external or including on our website blog.
  • You should know atleast how to run PHP code on your computer.
  • Install Xampp or Mamp Server on you computer / laptop.
  • Understanding English language is must, as this course will be in english language.

Why should I learn OOP?

Object Oriented Programming (OOP) is programming concept which brings the following advantages to this course:

  • 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.

This course will help you learn

PHP Basics: Introduction

  1. What is Object Oriented Programming in PHP?
  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. To Be Continued

Trust me we will learn more than what we think before even starting here.

Copy link
Powered by Social Snap