Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PHP OOP - Understand Object Oriented Programming in PHP
Rating: 4.2 out of 5(410 ratings)
11,340 students

PHP OOP - Understand Object Oriented Programming in PHP

Learn and understand PHP OOP so that you can start building amazing Web Apps with PHP frameworks such as LARAVEL
Created byRyan Dhungel
Last updated 10/2023
English

What you'll learn

  • Gain Clear Cut Understanding Object Oriented Programming in PHP
  • Get fully prepared to learn and understand PHP frameworks such as Laravel
  • OOP - Classes
  • OOP - Properties and Methods
  • OOP - Magic Methods
  • OOP - Public and Private Visibility
  • OOP - Encapsulation
  • Namespaces
  • Autoloading
  • OOP - Inheritance
  • OOP - Abstract Classes
  • OOP - Interface
  • OOP - Polymorphism
  • OOP - Traits
  • OOP - Exceptions

Course content

2 sections21 lectures3h 0m total length
  • Classes and properties8:22

    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.

  • Classes and methods7:37
  • Magic method - constructor7:23

    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.

  • Magic method - toString , default arguments and type hinting6:25
  • Public and private visibility11:58
  • Encapsulation - accessors - mutators10:28
  • Static property12:40

    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.

  • Namespace use, as keywords8:31
  • Autoloading5:57

    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.

  • Inheritance - extends - parent10:55

    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.

  • Overriding methods4:11
  • Abstract classes part one14:25

    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.

  • Abstract classes part two8:19

    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.

  • Interface part one8:44

    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.

  • Interface part two13:58

    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.

  • Polymorphism9:28
  • Traits part one12:55
  • Traits part two8:52
  • Exception - try catch finally block7:55
  • Source code0:03

Requirements

  • Basic knowledge of PHP Programming Language
  • Have a local development environment setup for writing PHP code

Description

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.

Who this course is for:

  • PHP developers who wants to understand Object Oriented Programming