9. Composer

Overview

By the end of this chapter, you will be able to describe the benefits of using a dependency manager in your application; identify high-quality, open source packages to solve common problems; add third-party libraries to your project; set up autoloading in your project so that you don't have to use include statements; and implement the Monolog logging package.

Introduction

In the previous chapter, we covered how to handle error conditions by using PHP's built-in Exception class and how to use the trycatch block to control the flow of your application.

Most modern-day applications are built on top of an amalgamation of other open source libraries. Many problems that are frequently encountered across all applications ...

Get The PHP Workshop 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.