Composerize
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Disclaimer
This module is still in development. It supports very basic Drupal 8 setups, but there are many necessary features it still lacks (e.g., support for patches, JavaScript libraries, distributions, etc). We're working on all that stuff, but this module is definitely not ready for prime time.
This module can generate a composer.json from your installed Drupal code base, which can be used to regenerate that code base by running composer install
. Embrace the future!
To use, install the module and visit /admin/reports/composerize. Copy the generated code into a new composer.json file, outside of the Drupal root (one level up). Then run composer install
from that directory. All contributed modules, themes, and profiles will be reinstalled (with all their dependencies -- thanks, Composer!) in the same place where you had them before. Then you can commit composer.json and composer.lock to version control.