This project is not covered by Drupal’s security advisory policy.

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.

Alternative approach

Composerize Drupal is a Composer plugin which does the same thing as this module, and may be your convenient for your use case.

Supporting organizations: 

Project information

Releases