Backend and Infrastructure

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

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.

Command Line Tools for Drupal