Add a composer.json file

Created on 4 August 2025, 2 months ago

Problem/Motivation

Looking at the codebase, I can see that this project doesn't have a composer.json file, it is important to have this file for a few reasons:

  • A module that uses a PHP library that is hosted on packagist.org, or that depends on other contributed modules from drupal.org, should have a composer.json file so that people downloading the module using Composer will automatically also install the dependencies (see section Drupal core compatibility).
  • A contributed module that depends on other modules/packages and has automated tests that run on the DrupalCI environment must have a composer.json that expresses the dependencies. Tests of merge requests on the module will fail without a composer.json file, as will tests of patches that change the dependencies.

Here's more information the importance of having this file your project

Steps to reproduce

Proposed resolution

Create a basic composer.json file

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Feature request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇨🇦Canada danrod Ottawa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024