OOP Object Oriented Programming In PHP 7 (Udemy.com)
Learn advanced object oriented programming with simple code examples. This Course includes almost all OOP PHP7 topics.
Created by: Saira Sadiq
Last updated April 2024
What you will learn
- Most of the topics of object oriented programming given in PHP manual.
- Apply Advanced OOP concepts in your applications.
- Add OOP skill in your CV.
How it compares
Against the other 151 rated Udemy courses in PHP on CourseDuck:
- Rating4.4 out of 5higher than 49% of them
- Reviews858#38 of 152 by number of reviews
- Length6 hourslonger than 50% of them
- Last updatedApril 2024more recently than 69% of them
Course Description
1st section of the course starts with an introduction to object oriented programming. What is OOP? and why we need it ? and what was before OOP?. A little detail about procedural language.We will also learn how to add OOPness in our programming. Then the advantages of object oriented programming.
In 2nd section we will discuss the basics of OOP with real life example and then how to map it in objects, classes, properties and method.
Then how to create objects and classes in php? How to add properties and methods? How to use them? And at the end of this section we will learn about parameters and return values of a method.
3rd section describes the visibility and its three levels. Then why we need to define public, private or protected visibility of properties and methods in a class.
4th section describes the concept of constants in classes.
5th section describes about data encapsulation. Why we need it? And how to implement it and then the benefits of encapsulation.
In 6th section we will discuss about inheritance with real life example. Then how to translate it in classes, properties and methods in php code. What is ISA and HASA relationship and where to use ISA and where to use HASA in classes and objects.
7th section describes the problem when a child class needs its own version of parent class method then how overriding of method solves this problem. Then how you can preserve parent class method’s functionality while overriding.
8th section describes how you can block inheritance and method overriding using final keyword.
9th section describes what is the meaning of abstract in real world, then what is the meaning of abstract classes, why we need i? What are the abstract methods and why we need it? Then we will also discuss how to create abstract classes and methods in php.
At the end what are the key points for abstract classes and methods.
In 10th section we will discuss what happens when two classes from completely different class hierarchies need some similar behaviour and how interface solve this problem.
In 11th section we will discuss what happens when an object is born and when it dies. How we can handle things in both situations using constructor and destructor. How to define and use constructor and destructor using magic methods __construct() and __destruct().
12th section describes a situation where we need only one copy of properties and methods for all objects of a class. Static keyword can solve this problem. So we will see how we can create and use static properties and methods without creating an object of a class.
In 13th section describes that there are 15 magic methods in php. So we will discuss these magic methods one by one in detail.
14th section is the biggest one in this course. In this we will discuss about errors and exceptions.
What supposed to be an error in php? How they happen? What are the different types of errors? .how you can trigger errors by yourself? And what are the logical error? Then we will see how we can report errors when they happen and how you can change error reporting settings in php.ini. We will also learn the 4 ways to deal with errors. Then how to use an error handler and at last how you can log error messages.
After errors we will discuss about what may be the risky behavior of your code and how we can use exceptions to handle that risky behaviour. We will see how we can try some risky behaviour then how we can throw an exception if anything wrong happens and how we can catch that exception. Then the detail discussion on exception class in php and the stack trace for the exception. Then how you can make your own custom exceptions by extending php’s built in exception class. Why we need to use try with multiple catches and how to re-throw an exception. What happens when there is an uncaught exception in your code.what is an exception handler.
Then at the end of this section we will discuss the changes in errors and exceptions in php7.
15th section describe how you can autoload classes in your code without using include and require statements. Then the use of autoloader function for this purpose. Then we will discuss to autoload namespace classes in your code using Psr-0 and Psr-4 autoloading standards but before that we will discuss what are the namespaces in php.
16th section is about object serialization. Why we need to serialize an object. Then when and how to unserialize it. We will also learn how to do task that are prior to serializing an object using __sleep() magic method.Then how to do task right away after unserializing an object using __wakeup() magic method.
17th section is about cloning of an object in which we will discuss two types of cloning that are shallow copy and deep copy. In deep copy cloning we will also discuss about __clone() magic method. Then we will see recursive cloning and then double linking problem in cloning. At the end we will discuss Deep copy cloning using serialization.
18th section is about Type hinting. In this we will see how we can use non scalar and scalar data types for type hinting. We will also discuss about strict scalar data types and TypeError exception thats been introduced in php7.
In 19th section we will learn two ways of comparing objects. First one is using Comparison operator (==) and 2nd one is using Identity operator (===).
20th section is about overloading an object. we will learn How to do property overloading Using __get(), __set(), __isset() and __unset() magic methods. Then how to do method overloading Using __call(), __callStatic() magic methods.
21st section describes about traits. First we will discuss deadly diamond of death problem in multiple inheritance. Then single inheritance and its limitations. Then how traits provide multiple inheritance thing in php. Then what will be the precedence order if a parent class and a trait have same method and then what will be the precedence order if a trait and current class have the same method. We will also discuss to use multiple traits and then how to compose a trait from other traits.
At the end we will discuss abstract and static trait members and trait properties.
22nd section describes late static binding. For this first we will discuss some basic concepts of binding like what is binding, early binding and late binding?
Then what is the problem with early binding of self keyword and at the end its solution which is late static binding.
23rd section describes object iteration. First we will get some idea about some basic concepts like traverse, iterate and iterate using loops. Then what is object iteration and how you can iterate an object using Iterator Interface and IteratorAggregate Interface .
Instructor Details
- 4.4 Rating
858 Reviews
Saira Sadiq
Saira Sadiq is a seasoned software engineer with over a decade of hands-on experience in PHP and Java development. Throughout her career journey, she has immersed herself in crafting efficient and reliable software solutions, harnessing the capabilities of these powerful programming languages. Beyond her professional pursuits, Saira has discovered a deep passion for teaching and knowledge-sharing. This drive has led her to create two comprehensive courses on Udemy, where she has distilled her extensive expertise into engaging and accessible learning experiences. Join Saira on this journey of growth and discovery as we unlock the potential of technology together.
More PHP courses
Basic PHP Development with Bootstrap, GitHub and Heroku (2022)
4.8 (447 Reviews)
Provider: Udemy
Time: 4.8h
Free
Sending email with PHP: from Basic to Advanced (2026)
4.8 (297 Reviews)
Provider: Udemy
Time: 2.1h
$64.99
Write PHP Like a Pro: Build a PHP MVC Framework From Scratch (2026)
4.7 (3,332 Reviews)
Provider: Udemy
Time: 6.7h
$13.99
Reviews
By Christoph Amthor on 3/7/2022
This course is really useful to learn about all aspects of OOP PHP, even those that you use rarely but that are good to know for a deeper understanding. It contains lots of information, much of which was new to me, or it was good to refresh my knowledge. The presenter uses real world examples and code to show how the various things work, where you might run into problems and how to solve them. The end. ;)
By Robert David Madison on 2/10/2022
I know English is not the instructor's first language; however, there were an overabundance of misspellings, punctuation errors, and grammar errors. Also, this course was NOT a beginners course as there were too many things assumed. The files for 6. Data Encapsulation were in a Winrar compressed file. I couldn't download and open the file. On a positive note, the course was organized quite well and the instructor very knowledgeable. Was this a good fit for me? It was. BUT only because I have had programming experience.
By Teresa Mundinger on 7/3/2021
The instructor is knowledgeable and is easy to understand. The course is primarily about php object syntax, but it is much more than the typical Udemy "watch me copy and paste" course. She explains what she is doing and why. The code examples will be good reference material. The course has been around for awhile, so I'm not sure how actively it is being maintained. Questions asked in the first several lessons took 10 days to get a response, but instructor may have more current courses that she is also maintaining.
By Patrick Colleran on 11/14/2020
For someone new to OOP, the lectures are in managable "bite-sizes" and seem pretty concise. Well preseneted
By Iain Wilson on 10/12/2020
Tutor has a very clear and concise way of conveying concepts and principles of PHP programming.
By Oleksandr Petrenko on 10/2/2020
Great course! Everything explained in details and with examples. When i started this course i wasn`t novice in PHP and already had a good experience in development, but it helped me to make my knowledges more structured and check myself. Thanks to author!
By Francisco Giraldo on 9/22/2020
Very complete course about OOP with PHP 7 new features. It uses simple examples to help understand the concept, although some of the last sections lacked more of this simple explanation.
By Ashley Tan on 9/16/2020
I didn't know I had to stay on the Source Files page for 1 minute before it counts as being "completed". When I finished the course, I still had to go back through all the sections and stay on the Source Files pages for 1 minute each before I was considered as having completed the course.
By Mekari Engineers on 9/15/2020
learn new technique, implementation & best practice of PHP
By Ivan Atanasov Andonov on 9/9/2020
Cool :)
By Tom Brown on 8/27/2020
Very good at explaining classes - all the different aspects of classes - and showing examples in PHP.
By Ana Maria Rodriguez Hernandez on 8/26/2020
great content
Quality Score
Overall Score : 88 / 100






