Managing dependencies for a custom project

You can use Composer to manage dependencies for your custom modules. To do this, your Drupal site's composer.json (located in the repo root) must have a way to read your custom project's composer.json file. If your custom project is not hosted on Packagist or Drupal.org, you may use a Composer path repository to accomplish this.

Find the repositories section of your root composer.json file, and modify it to include your custom module or modules as path repositories:

Using Composer to Install Drupal and Manage Dependencies

Composer can be used to manage Drupal and all dependencies (modules, themes, libraries). Make sure you have composer installed on your local machine before executing any Composer commands.

Subscribe with RSS Subscribe to RSS - Dependencies