Levi

Intro to Object Oriented PHP

To learn how to write Object Oriented PHP, we will start with some basics and build upon those. I will use fictitious and realistic examples. We will also use a simple autoloader, so we don’t have to use includes for each file.

Autoloading

Eventually, you will want to use composer to install packages and to generate your autoloader.

Classes

Interfaces

Abstract Classes

Traits

Polymorphism

Namespaces