Object-oriented programming is perhaps the dominant development paradigm for leading languages including Java, C#, and Python. The rich class and inheritance framework wasn’t fully implemented in modern PHP until 2015, and best practices for object-oriented programming are still emerging.
This course is an introduction to object-oriented programming in PHP. You’ll start with the basics of the OOP paradigm and get familiar with classes, objects, methods, and properties. You’ll then chain methods and properties using the this keyword before working with access modifiers and magic methods. With these basics down, you’ll take a deep dive into object-oriented programming in PHP, including inheritance, abstraction, polymorphism, and namespaces. After exploring exception handling, you’ll use these object-oriented techniques to build, manage, and edit a PHP database.
By the end of this course, you’ll be prepared to build dynamic server-side applications using object-oriented programming in PHP.
Object-oriented programming is perhaps the dominant development paradigm for leading languages including Java, C#, and Python. T...Show More
WHAT YOU'LL LEARN
A strong understanding of the object-oriented programming paradigm
Familiarity with objects, classes, methods, and properties for server-side web scripting
Expertise in applying object-oriented programming techniques to PHP web applications
Hands-on experience in building and maintaining a PHP database using object-oriented principles
A strong understanding of the object-oriented programming paradigm
Show more
TAKEAWAY SKILLS
Content
1.
Introduction
3 Lessons
Get familiar with OOP in PHP, key concepts, and practical coding exercises.
2.
Classes and Objects
6 Lessons
Look at OOP principles, class creation, object instantiation, methods addition, and practical exercises.
3.
Using the $this Keyword for Chaining Methods and Properties
7 Lessons
Work your way through using the $this keyword for accessing class properties and chaining methods.
4.
Access Modifiers
5 Lessons
Enhance your skills in managing PHP access modifiers for secure and controlled data access.
5.
Magic Methods and Constants Unveiled
4 Lessons
Take a closer look at PHP's magic methods for dynamic initialization and contextual information.
6.
Inheritance in Object-oriented Programming
6 Lessons
Focus on inheritance concepts, protected modifiers, method overriding, and practical implementation challenges.
7.
Abstract Classes and Interfaces
9 Lessons
Master the use and distinctions of abstract classes and interfaces in PHP with practical examples.
8.
Polymorphism and Type Hinting
9 Lessons
Learn how to use polymorphism and type hinting to enhance PHP code efficiency.
9.
Static Methods & Properties and Traits
6 Lessons
Unpack the core of static methods, properties, traits, and their practical implementations.
10.
Namespaces & Dependency Injection
6 Lessons
Master the steps to enhance code clarity, flexibility, and maintainability using namespaces and dependency injection.
11.
Exception Handling
5 Lessons
Enhance your skills in managing errors and exceptions in PHP effectively and gracefully.
12.
PHP Database
7 Lessons
Solve problems in PHP database operations using PDO for CRUD and user management.
13.
Model-view-controller (MVC)
2 Lessons
Tackle organizing and maintaining PHP code using the MVC design pattern.
14.
Conclusion
1 Lessons
Build on the principles of object-oriented PHP to enhance real-world application development.
15.
Appendix
2 Lessons
Learn how to use Packagist, Composer, and autoloading to streamline PHP development.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 million developers working at companies
"These are high-quality courses. Trust me. I own around 10 and the price is worth it for the content quality. EducativeInc came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
Evan Dunbar
ML Engineer
"You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it."
Software Developer
Carlos Matias La Borde
"I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site"
Souvik Kundu
Front-end Developer
"Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources