One of the most important features of Zend Framework 2.0 is the ability to integrate external modules in your PHP application, and this integration is completely managed using a dependency management tool (in our case, Composer
).
This feature allows development of PHP applications without having to worry about maintaining external libraries inside your application. Libraries and applications can be decoupled and maintained separately.
In this chapter, we will be using an external module for resizing images; we will also make use of external libraries for connecting to Google services.
Tip
Composer
Composer is the one of the dependency management solutions used in Zend Framework. Composer allows developers to declare the dependencies needed for their application and will handle the installation of those libraries. The dependency configuration is stored in a file named composer.json
.