Managing Existing Sites Using Composer Updated on December 3, 2021 by InMotion Hosting Contributor 1 Minutes, 9 Seconds to Read There are times when you may find yourself wanting to use Composer in order to manage the dependencies on a particular Drupal installation. If Composer was not installed during the installation of the Drupal site, then you will either need to manually make a change, or you can use a plugin to get Composer properly configured. This article applies to Drupal 8 sites that were originally installed without using Composer. Using the Composerize PluginManually Editing the Composer.json File Using the Composerize Plugin The easiest way to get Composer properly configured to use with your Drupal site is to use the Composerize plugin. You can download it and then get installed on your site. To learn more about the plugin, please see the plugin documentation from their github location. Once you have the plugin installed it will automatically generate an updated composer.json file. The Composerize plugin will add contributed modules, themes, and profiles that it finds on your site. The Composerize plugin will create a composer.json file from your installed Drupal codebase. Manually Editing the Composer.json File Manually editing your Composer.json file to add the Composer can be a very lengthy endeavor. Drupal.org has graciously put in a step-by-step document for Adding Composer to an Existing Site. These steps will take you through the manual exercises required to get your site working with Composer. Make sure your business, agency, or reseller clients are always connected and powered on with our optimized Managed VPS Hosting. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Finding 404 page not found errors in Drupal 7 Removing the site title in Drupal 8 Content Types in Drupal 8 Disabling user images for posts and comments in Drupal 8 How to add an image in Drupal 7 How to upload your custom logo in your Drupal 7 theme Setting custom logos in your Drupal 8 theme Fixing the “An unrecoverable error occurred” error in Drupal How to Make a Duplicate Drupal Site How to Install a New Theme in Drupal