Install drupal 9 module using composer | download module in drupal 9 via composer

Table of Content

  • Download Drush using composer
  • Download modules using composer
  • Enable module using drush
  • Manual Download & Enabled Module

Related: Install drupal 9 using composer with lando

Download Drush using composer

What is Drush ?

The name Drush stands for DRUpal SHell. Drush is a command line utility you can use to communicate to your Drupal CMS. You can use Drush to manage Drupal and sites Detect errors and issues and fix them, overall it’s saves development time.

Command for downloading drush using composer.

lando composer require drush/drush
Drush download using composer
Drush download using composer

Download modules using composer

What is Rest UI module in drupal?

It modifies the web service responses with addition of Error codes and descriptions. It also facilitates REST Web service request & response formatting. Click here for more details.

Command for downloading Rest UI using composer.

 lando composer require drupal/restui
drupal -  restui module
drupal 9 – restui module

What is Admin Toolbar module ?

The Admin Toolbar module intends to improve the default Toolbar (the administration menu at the top of your site) to transform it into a drop-down menu, providing a fast and easy access to all administration pages.

Command for downloading Admin Tool Bar using composer.

 lando composer require drupal/admin_toolbar
download Admin Tool Bar using composer
download Admin Tool Bar using composer

Note: It’s dependancy modules automatically will be downloaded. For example Admin Toolbar Extra.

Enable module using drush

lando drush en restui
Enabled RestUI module
Enabled RestUI module

Note: it’s enabled all it’s dependancy modules. e.g. rest, serialization.

lando drush en admin_toolbar
Enabled Admin Tool Bar Module
Enabled Admin Tool Bar Module

Note: you can enable multiple modules at once.

lando drush en admin_toolbar_tools basic_auth
Enabled Admin Tool Bar Extra and Basic Auth Modules at once

Manual Download & Enabled Module

Below are the steps to download and enable module manually.

Step 1.

Type module name in google e.g. paragraphs module drupal 9

Paragraphs module manual search in google
Paragraphs module manual search in google

Step 2. click on first link (from https://www.drupal.org/project/paragraphs ) and download the module.

Paragraphs module manual download
Paragraphs module manual download

Step 3. Copy downloaded module, and Go to project root directory/web/modules/contrib and extract here.

Paragraphs module manual installation
Paragraphs module manual installation

Step 4. Login your local environment and click on extend on top navigation. And type ‘paragraphs’ below ‘+add new module’. Your paragraphs module will be filtered. Then click on checkbox beside paragraphs and click on install.

Search for paragraph from the list of all modules
Search for paragraphs from the list of all modules

Step 5. Click on Continue

Click on continue, while asking for it's dependancy module installation
Click on continue, while asking for it’s dependancy module installation
Paragraphs module successfully enabled.
Paragraphs module successfully enabled.

Related Article: Install drupal 9 using composer

Pradip Mehta

I am a well-organized professional in Drupal Development and PHP web development with strong script handling knowledge or automation process with PHP. I have advanced computer skills and am a proficient multitasker.