Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PHP Mastery Object-Oriented Design & Test-Driven Development
Rating: 4.2 out of 5(356 ratings)
9,147 students

PHP Mastery Object-Oriented Design & Test-Driven Development

Master Object-Oriented PHP, PHPUnit, Design Patterns, and Dependency Management for Real-World Applications
Last updated 11/2023
English

What you'll learn

  • Learn test-driven development (TDD)
  • Understand Object Oriented PHP
  • Learn how to write unit tests using PHPUnit
  • Learn how and why you should use dependency invasion principle (DIP) and dependency injection
  • Build a scalable object oriented PHP application
  • Implement some common design patterns using PHP
  • Build a database wrapper with support for PDO and MySQLi

Course content

8 sections68 lectures12h 16m total length
  • Introduction0:48
  • How to Get Help0:20
  • Download Complete Source code0:14
  • PHP Classes and Objects13:16

    In this lecture we start by examining the basic structure of a PHP class, create a class with properties and behaviors, create an object and use it.

  • Bootstrapping An Object7:38

    Now that you know how to create and instantiate a class, you can learn how to initialize an object using a constructor.

  • Encapsulation13:40

    Encapsulation refers to protecting the internals of an object from direct manipulation by the client. The client can send messages, but the client cannot directly change the properties in the object. Lets see how to encapsulate an object in PHP.

  • Object Inheritance9:58

    Inheritance is the ability for a subclass to inherits all of the public and protected methods and properties from the parent class.

  • Static Methods & Properties7:40

    Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. Let talk about Static Methods & Properties and learn how to use them in PHP.

  • Method Chaining5:41

    With Object-oriented programming, the possibilities are endless, let's now consider a new concept in OOP called method chaining.

  • Abstract Classes (Database Case Study)13:26

    In this lecture you will learn both theoretical and practical implementation of abstract classes in PHP using a simple case study

  • Abstract Classes (Database Case Study) - Conclusion18:31

    In this lecture, you will learn both the theoretical and practical implementation of abstract classes in PHP using a simple case study.

  • Object Interfaces (Predator and Prey Case Study)18:51

    In this lecture, you will learn about object interfaces in PHP, why they are important, why you should use them, and also how to use interfaces using a simple case study.

  • Late Static Binding3:13

    Let's talk more about late static binding and fix a bug from the last lecture using late static binding.

  • Namespacing and Better Autoloading16:07

    Let's now discuss about namespaces and autoloading in PHP as these are two very important aspects when building model applications

  • Simple OOP Project: Grading Class Overview3:05

    In this video I'll go over the requirements for the simple grading class that we are going to build

  • Simple OOP Project: Compute Student Semester Result Class12:59

    Lets build the class to compute result for 5 subjects in a semester

  • Simple OOP Project: Using The Compute Student Semester Result Class6:44

    Time to tie everything together by linking the grading class to the form and outputting relevant data to the UI

Requirements

  • Basic knowledge of PHP
  • Basis Knowledge of PDO or MySQLi
  • PHP 7 or Higher

Description

Step into the world of modern PHP development with our advanced course, tailored for those who want to leave outdated PHP practices behind. Our curriculum is meticulously crafted to transition you into the realm of Object-Oriented PHP and Test-Driven Development (TDD) using PHPUnit, focusing on real-world applicability without unnecessary dependencies.


Why is this course a game-changer for your PHP development journey? Here's what sets us apart:


  1. Deep Dive into Object-Oriented PHP: Understand both foundational and advanced concepts of OOP, empowering you to write clean, maintainable, and scalable code.

  2. Expert Guidance in Test-Driven Development: Learn TDD with PHPUnit to create robust, bug-resistant software, enhancing your code quality and reliability.

  3. Mastering Dependency Management: Unravel the intricacies of Dependency Inversion and Dependency Injection, key to handling complex projects seamlessly.

  4. Proficiency in PHP Design Patterns: Equip yourself with essential design patterns for PHP, elevating your problem-solving skills and organizational abilities.

  5. Building a Custom Database Wrapper: Construct a versatile database wrapper compatible with PDO and MySQLi, optimizing your data handling processes.

  6. Balanced PHP Utilization: Gain insights into when to use basic versus advanced PHP features for maximum efficiency and effectiveness.

Join a course that's more than just theory. With our focus on practical, job-ready skills, you’ll be equipped to confidently tackle any PHP project. PHP remains a powerhouse in the programming world; mastering it opens doors to numerous opportunities. Enroll now and transform your PHP skills from ordinary to extraordinary!"

Who this course is for:

  • Developers who wants to learn object oriented PHP and test driven development
  • Developers who need to learn object oriented PHP the right way