© Christopher Pitt 2016

Christopher Pitt, Typed PHP, 10.1007/978-1-4842-2114-3_5

5. Implementation

Christopher Pitt

(1)Cape Town, Western Cape, South Africa

Following on from last chapter, we’re going to continue with the implementation of our library. In this chapter we’re also going to learn a bit about how to extend Composer through plugins.

We’ll finish off with the definitions of the most important library functions.

Extending Composer

Composer has become the de facto package manager for PHP. It’s a powerful tool with a powerful plugin system. Let’s take a look at how to create plugins, so we can automate some of the installation hassles our type library might create.

Example: Path Plugin

I’ve seen many frameworks create their own installers for ...

Get Typed PHP: Stronger Types For Cleaner Code now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.