CHAPTER 5Object Tools

As we have seen, PHP supports object-oriented programming through language constructs such as classes and methods. The language also provides wider support through functions and classes designed to help you work with objects.

In this chapter, we will look at some tools and techniques that you can use to organize, test, and manipulate objects and classes.

This chapter will cover

  • Packages: PHP does not support packages explicitly, but that's no reason not to organize your code into package-like structures.
  • Include paths: Setting central accessible locations for your library code.
  • Class and object functions: Functions for testing objects, classes, properties, and methods.
  • The Reflection API: A powerful suite of built-in classes ...

Get PHP Objects, Patterns, and Practice, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.