Back Button PHP

Object-Oriented Bootcamp

As wonderful as Laravel is, it does assume that you have a basic understanding of object-oriented programming. If you don't, that's okay, we all were there at one point; however, you need to buckle down and learn this stuff before continuing on to the various lessons on this site. Let me help!

10 episodes
1:59:19 hrs
Start Series
Notification bell This series has been archived. We instead recommend: Object-Oriented Principles in PHP A series is marked as archived when the content is no longer up-to-date or relevant to most viewers.
    1. Run Time 10:05 Free

      Naturally, the first step in our journey is to review the structure of a PHP class. As you'll find, they allow us to represent pieces of our domain in a readable and flexible fashion.

    2. Run Time 7:19

      When I was first learning, I had a lot of trouble understanding the need for getters and setters. Hopefully, I can make it easier for you, than it was for me!

    3. Run Time 5:30

      Encapsulation is a confusing, scary term, that simply refers to the act of hiding information. Let me show you.

    4. Run Time 16:12

      Luckily, inheritance is a fairly easy concept to understand. I'll show you a few different examples to illustrate this common pattern.

    5. Run Time 11:07

      The key to OOP is undestanding that objects send messages to one another. So far, we've exclusively worked with single classes, but that's not even remotely indicative of a real-world application. So, let's take a step up the ladder, and talk about communication.

    6. Though not directly related to OOP, it's important that we take a short break to discuss such topics as namespacing and autoloading. These are core concepts that you must learn.

    7. You've likely come across an article on the web, which stated that statics are evil. What do they mean by this? Is it true? Well...partially. Let's talk about it in this episode.

    8. Run Time 19:13

      Appreciating the benefits of coding to an interface took me a very, very long time. This video will be step one on your journey. Watch it multiple times.

    9. When I was first learning OOP, I very quickly became confused by interfaces and abstract classes. What is the difference between the two? How do I decide which is appropriate for any given situation?

    10. Run Time 15:09

      I want to impress upon you that developers, at all times, have multiple ways to solve any particular problem. In certain contexts, one approach might be preferred, while in other situations, it very much might be the wrong approach. The key is to measure the pros and cons as best as you can.

      In this episode, we'll review many of the terms that you've learned in this series.

You May Also Enjoy...

Here are some additional series that may be up your alley.

PHP PHP 7 Up and Running

Slated for release in December, 2015, PHP 7 brings a wealth of new features, bug fixes, and performance improvements. If you're curious, come with me,...

28:25 mins
PHP Design Patterns in PHP


1:43:02 hrs
PHP SOLID Principles in PHP

SOLID represents a series of guidelines that developers can use to, if done well, simplify and clarify their code. While certainly not laws, understan...

57:12 mins
Laravel Let's Build A Forum with Laravel and TDD


19:29:26 hrs

Because our industry advances so quickly, it's far too easy for bits and pieces to fall through the cracks. Each episode in this series provides a sta...

31:49 mins