Anatomy of a Composer Project for Drupal 7, Drupal 8, and Drupal 9

Last updated June 2, 2018

Every Composer project is made up of a few standard files and directories. This tutorial provides an overview of the anatomy of a Composer project, and the essential files and directories used by Composer, including:

  • What are composer.json and composer.lock files?
  • What is in a composer.json file?
  • What is the /vendor directory?

By the end of this tutorial you should be able to recognize the standard files and directories in a Composer project and know what they are each used for.