
Define objects as holders for related variables and logic, and explain encapsulation and inheritance in object oriented PHP. Explore classes, methods, properties, interfaces, and how weak typing affects polymorphism.
Discover basic PHP OOP constructs by defining a class, creating an object with new, and calling its methods with the arrow operator; compare static methods called with ::.
Set up your computer to run PHP and MySQL locally with a lamp package for Windows, macOS, or Linux, using about 500 megabytes. Test your work before deploying.
Install and configure a WAMP server on a Windows PC by downloading the correct 32- or 64-bit package, running the installer, and launching Apache, MySQL, and phpMyAdmin locally.
Install and start MAMP on macOS, configure Apache and MySQL, and verify phpMyAdmin connects to MySQL from the local web server.
Configure MAMP for Macintosh by setting Apache to port 80 and MySQL to 3306, restart the servers, and verify the start page shows the standard ports.
Learn how to locate, copy, and place the working files on your desktop, then open and save changes from the player, dvd, or disk on pc or mac.
Define classes and explore object oriented PHP by building a simple class, using public properties, instantiation, and the arrow notation to call methods.
Define class properties in object oriented PHP, distinguishing variables from constants, and access them with instance arrows or static double colon, illustrating self and PI usage and simple circumference calculation.
Define methods in object oriented PHP by a SleptYears class that computes years slept from age and hours slept, showing property access vs passing data to methods.
Learn to create and use objects in PHP by placing class definitions in files and instantiating with new. See how constructors initialize data for methods like addFruit to total fruit.
Explore static properties and methods in PHP with a class that defines a static add fruit method receiving apples, oranges, and bananas, returning total fruit via ClassName::method without instantiation.
Create a web form for name, age, and sleep hours; use a php object oriented class with a constructor and hours-in-a-day constant to calculate years slept and display a message.
Learn the object oriented PHP solution to assignment 1, calculating years slept from age and nightly sleep using a class, constructor, constants, and form data.
Learn how extending a class in PHP enables inheritance, where a dog class inherits from an animal class, using constructors and show type to display traits like Lassie's collie.
Demonstrates controlling access to properties in PHP OOP by comparing public, private, and protected fields, using constructors, getters, and setters in animal and dog class hierarchies.
Define and enforce object oriented abstraction with abstract classes to prevent instantiation and enable inheritance, as shown by the animal, dog, and my dog examples.
Learn how to override methods in PHP inheritance, where a dog customizes the animal's show title, species, and breed while extending the parent method.
Explore the final keyword in PHP object-oriented programming to prevent overriding methods or classes, illustrated with a final function show animal and a non-extendable final class.
Explore how to define and implement interfaces in PHP, using constants and abstract methods to enforce contracts across classes, and implement job code interfaces to standardize methods.
Explore how to implement MySQLi queries in PHP using an object oriented style, creating a MySQLi object, executing a select with where and order by, and fetching results.
Build a PHP object-oriented financial tracker that adds income or expense transactions, validates categories (income: paycheck, stock; expense: rent, food, gas), and displays all transactions in a table.
See a PHP object-oriented solution for assignment 2 that validates income and expense categories, adds transactions to a file, and displays them via a static method.
Apply object-oriented PHP concepts to a real project to reinforce learning. Explore polymorphism, and use static properties and functions where appropriate, with naming prefixes to avoid conflicts in team applications.
This Object Oriented PHP training course from Infinite Skills will teach you everything you need to know to code Object-Oriented PHP. This course is designed for users that already have programming experience in general, and a working knowledge of PHP.
You will start with an introduction to Object-Oriented Programming and learn how to set up your computer for PHP and MySQL. You will then jump into learn how to define classes and properties, create and use objects, and define methods. This video tutorial will cover how to extend a class, control access to properties, override methods, and define and implement an interface. Finally, this course will teach you how to use the Object Oriented Programming style to connect with MYSQL using the MySQLi class.
Once you have completed this computer based training course, you will have a solid understanding of how to code Object-Oriented PHP. Working files are included, allowing you to follow along with the author throughout the lessons.