
Learn how to define a PHP class with properties like title, author, ISBN, and availability, use public visibility, and instantiate objects with the new keyword for a bookstore catalog.
Create a class that uses public properties and methods, prints a title by concatenating title and author using this, and decrements availability with a get copy method.
Explore PHP's magic methods with a focus on the constructor and its automatic invocation when instantiating objects; learn to pass arguments to initialize properties.
Explore magic methods in PHP, including the toString method that auto converts objects to strings. Learn default arguments and type hinting to enforce parameter types.
Explore PHP object oriented programming by examining private, protected, and public visibility. Learn how access modifiers control properties and methods across parent and child classes.
Practice encapsulation by using accessors and mutators to read and set private properties. Expose data via getters and setters, preserving internal structure while handling first name, last name, and email.
Explore static properties and methods in PHP OOP, learn how to increment a class-wide id, access via self:: and the class name, and distinguish static from instance members.
Learn how namespaces organize PHP classes, how to use the use keyword to import a namespace or class, and how to alias with as to prevent name conflicts.
Explore autoloading in PHP OOP by using a class-name based loader to automatically load files, and learn how this replaces manual requires behind the scenes.
Learn how inheritance works in PHP by using extends to inherit a parent’s properties and methods, with protected, public, and private access and constructor usage.
Override methods in PHP by defining the same method in a child class; the child's version takes precedence, and you can call the parent method with parent::method to extend behavior.
Explore abstract classes, how a parent enforces method implementation across child classes, and how basic and premium customers extend from customer and ultimately from person.
demonstrates declaring an abstract class in php, adding abstract methods, and forcing child classes like basic and premium to implement them, noting that abstract classes cannot be instantiated.
Explore PHP interfaces as contracts that declare public methods and properties, contrast with abstract classes, and show how implementing enforces methods in classes like basic and premium.
Learn how basic and premium classes extend a person base while implementing interfaces, and how interfaces can extend other interfaces to enforce methods like pay and taxes.
Polymorphism lets you work with different classes that implement the same interface, such as basic and premium customers, through a common interface to process payments and taxes.
Learn how traits enable code reuse in PHP by extracting the ID logic into a unique ID trait and applying it across classes.
Explore how traits in php handle method name collisions, using instead of and as to alias and resolve conflicts, and see how to apply trait composition across classes.
Learn how to enforce argument types with exceptions, implement try catch finally blocks, throw and catch errors, and handle finalization in PHP object oriented programming.
Learn and understand PHP Object Oriented Programming. OOP is the most popular software development paradigm that has been around for years.
The main focus of this course is to give you a solid understanding of OOP so that you can start using frameworks such as Laravel.
Laravel is currently the most popular web framework. It is very much loved by developers because it makes development process easy and enjoyable while letting you build extremely powerful server side web applications.
But even if you have a good grasp of core PHP, you will find learning a framework like laravel very difficult and time consuming. That is because they are built around MVC pattern.
Without very good understanding of OOP, you will be completely lost, trying to learn frameworks. This course is for that exact reason.
If you are completely new to OOP, I suggest you to complete this course and repeat a few more times so that you understand the concept behind OOP.
This course is not about building an application. This course is about understand the core concept of Object Oriented Programming. It is about understanding classes, properties, methods, static methods, magic methods, interface, inheritance, traits and so on...
Once you complete this short course, you will be comfortable learning MVC frameworks and start building powerful web applications with frameworks such as Laravel.