Composer Module Installation

Applies to: FlexLab

Overview

FlexLab installs Drupal modules and dependencies via Composer in your Git repository, not dashboard one-click updates.

Steps — add a module

  1. Clone repo from Code tab.
  2. Run composer require drupal/module_name locally.
  3. Commit composer.json and composer.lock.
  4. Push to branch; pipeline runs composer install during build.
  5. Enable module in Drupal after deploy (drush en module_name via Automation or CLI).

Custom packages

  • Private Composer repos: configure auth in GitLab CI variables and FlexSite Environment Variables.
  • Patch modules with cweagans/composer-patches in repo.

vs Codeless

Codeless uses One-Click Module Updates in dashboard. FlexLab teams own dependency updates via MR review.