Backend and Infrastructure

The Wonderful World of Composer

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Alternate resources

Sprout Video

Welcome to the wonderful world of Composer, the Dependency Manager for PHP! In this tutorial, you'll learn how to install and configure Composer and use it to integrate third-party libraries into any PHP project. We'll walk through:

  • How Composer makes sharing awesome again
  • Downloading the composer.phar file
  • Creating the composer.json file
  • Installing the external libraries
  • Handling autoloading
  • Understanding the composer.lock file
  • The update versus install command
  • The require command
  • Storing in version control

Additional resources

Also, check out our topic page on Composer for even more resources.