Log In
Join
for free
Back To Course Home
Object-Oriented Programming in PHP
0% completed
Introduction
Overview of the Course
Who Is This Course For?
Why Study This Course?
Classes and Objects
Introduction to OOP Class
Creating Objects From a Class
Adding Methods in a Class
Quiz: Classes and Objects
Challenge: Classes and Objects
Solution Review: Classes and Objects
Using the $this Keyword for Chaining Methods and Properties
Introduction to the $this Keyword
Chaining Methods and Properties
Quiz: Using the $this Keyword for Chaining Methods and Properties
Challenge: The $this Keyword
Solution Review: $this Keyword
Challenge: Chaining Methods and Properties
Solution Review: Chaining Methods and Properties
Access Modifiers
Access Modifiers: Public vs Private
Why Do We Need Access Modifiers?
Quiz: Access Modifiers
Challenge: Access Modifiers
Solution Review: Access Modifiers
Magic Methods and Constants Unveiled
The construct() Magic Method
Magic Constants
Challenge: Magic Method
Solution Review: Magic Method
Inheritance in Object-oriented Programming
Introduction to Inheritance
The Protected Access Control Modifier
Method Overriding and the final Keyword
Quiz: Inheritance
Challenge: Inheritance
Solution Review: Inheritance
Abstract Classes and Interfaces
Introduction to Abstract Classes and Methods
Creating Child Classes from an Abstract Class
Introduction to Interfaces
Interfaces vs. Abstract Classes
Quiz: Abstract Classes and Interfaces
Challenge: Abstract Classes and Methods
Solution Review: Abstract Classes and Methods
Challenge: Interfaces
Solution Review: Interfaces
Polymorphism and Type Hinting
Introduction and Implementation of Polymorphism
Type Hinting
Limitations of Type Hinting for Objects
Type Hinting for Interfaces
Quiz: Polymorphism & Type Hinting
Challenge: Polymorphism
Solution Review: Polymorphism
Challenge: Type Hinting
Solution Review: Type Hinting
Static Methods & Properties and Traits
Introduction to Static Methods and Properties
Traits and Code Inclusion
Differences between Traits and Inheritance
Quiz: Static Methods & Properties and Traits
Challenge: Static Methods & Properties and Traits
Solution Review: Static Methods & Properties and Traits
Namespaces & Dependency Injection
Namespaces and Code Integration
Dependency Injection
Type Hinting and Dependency Injection
Quiz: Namespaces
Challenge: Dependency Injection
Solution Review: Dependency Injection
Exception Handling
Exceptions and How to Handle Them
Some More Methods to Handle Exceptions
Quiz: Exception Handling
Challenge: Exception Handling
Solution Review: Exception Handling
PHP Database
PDO - PHP Database Extension
Inserting Data into the Database
Reading Data from the Database
Updating Data in the Database
Deleting Records from the Database
Challenge: PHP Database
Solution Review: PHP Database
Model-view-controller (MVC)
MVC and Code Organization
MVC Example
Conclusion
What Have We Learned?
Appendix
How to Use Packagist and Composer
Autoloading PHP Classes the Composer Way
Solution Review: Interfaces
Let's look at the solution of the Interface challenge.
Solution
Get hands-on with 1300+ tech skills courses.
Start Free Trial