Composer Plugin Adds Constraint Overrides for Drupal Module Compatibility

composer-drupal-lenient 2.0.0 Adds Drupal 11 Compatibility Workarounds

Version 2.0.0 of composer-drupal-lenient introduces new capabilities for analysing and bypassing version restrictions that can block module installation. The Composer plugin is used to relax dependency constraints in Drupal projects.

The update adds support for Composer commands such as why-not and prohibits. These commands help developers identify constraint conflicts. The release also introduces a Drupal runtime hook that bypasses core_version_requirement checks during installation. In a LinkedIn post, Matt Glaman highlighted these additions.

The plugin addresses cases where contributed modules are technically compatible with newer Drupal versions but remain blocked by declared constraints. By relaxing these constraints, developers can install modules and apply patches. This allows compatibility to be tested without modifying upstream package metadata.

Additional updates include improvements to testing and workflow integration. The project now uses PHPUnit-based coverage for PrePoolCreateEvent. It also includes fixes related to Composer’s security features. The release adds a license file and includes contributions from new contributors, including automated changes generated through GitHub Copilot.

The plugin operates through an allowlist model. Developers can specify which packages bypass strict constraints. This provides controlled flexibility during dependency resolution. It is particularly useful during major Drupal version upgrades.

Disclosure: This content is produced with the assistance of AI.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Upcoming Events