DX - composer replaces - forking process is easier than we thought

Created on 27 August 2025, 21 days ago

Problem/Motivation

When a contrib module or dependency becomes problematic, we may need to bypass a dependency to be able to move forward on a short timeframe.

Composer replaces to the rescue!

@cmlara pointed out that he's used composer replaces to get around this.

He's created the bunny module as a replacement for rabbitmq

In composer, he uses composer replaces to replace drupal/rabbitmq with drupal/bunny.

@cmlara has offered to create a writeup for this. We should add a DX note for this documentation. I'll probably create my own documentation page on my public facing website.

https://www.drupal.org/project/bunny

Steps to reproduce

a contrib module becomes problematic

fork it

then use composer replaces

Proposed resolution

See issue summary and steps to reproduce

Remaining tasks

Add DX notes for documentation purposes and for maintainers of this project and others.

📌 Task
Status

Active

Version

6.1

Component

Documentation

Created by

🇨🇦Canada joseph.olstad

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

Comments & Activities

Production build 0.71.5 2024