Practice It: PHP Classes and Objects
1h 13mIntermediate2022-11-09
Authors

Tammy Robinson
Instructor, Expert Programmer, Tech Community Organizer
Course details
If you’re trying to become a more nuanced, successful PHP developer, you can’t overstate the value of expertise in object-oriented programming. That’s because PHP frameworks like Drupal, Symphony, and Laravel all require the same foundational programming skills. In this course, instructor Tammy Robinson gives you a practical overview of working with PHP classes and objects, two of the most important extensible concepts of procedural programming. Learn about creating classes and class instances, also known as objects, exploring a wide range of different access types, properties, and methods. Along the way, Tammy offers tips on using operators, constructors, inheritance, abstract classes, interfaces, and traits.
Skills covered
PHPProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Become a successful PHP developer
- 02 - What you should know
- 03 - Using GitHub Codespaces with this course
1. Objects and Classes
- 04 - Class definitions
- 05 - Try it - Defining a class
- 06 - Check it - Defining a class
- 07 - Creating class instances
- 08 - Try it - Creating an object
- 09 - Check it - Creating an object
2. Working with Object and Class Data
- 10 - Access operators and modifiers
- 11 - Try it - Initialize object data and behavior
- 12 - Check it - Initialize object data and behavior
- 13 - Using constructors
- 14 - Try it - Refined object creation
- 15 - Check it - Refined object creation
3. Extending Functionality Using Composition and Inheritance
- 16 - Inheritance
- 17 - Try it - Create a child class
- 18 - Check it - Create a child class
- 19 - Sharing rules and behaviors
- 20 - Try it - Choose your own adventure
- 21 - Check it - Choose your own adventure
Conclusion
- 22 - Learning more about PHP