Composer is an application-level package manager for the PHP applications that provides a standard system for managing dependencies of different libraries and others. Some of the features of composer are:

  • dependency resolution for PHP packages
  • keeping all packages updated
  • support autoloading out of the box
  • hooks to execute pre and post commands

To manage dependencies, composer uses composer.json file, which looks like:

Copy to Clipboard