O'Reilly logo

Typed PHP: Stronger Types For Cleaner Code by Christopher Pitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required