Here’s some documentation for some of the work we were doing at today’s lab:
Using Composer to Install Drupal and Manage Dependencies
We have composer all set up on our servers, so you can skip the installation part if you’re doing things via the command line in that way. The short version to the question, “how do I install a module with composer?” is as follows:
$ composer require drupal/<modulename>
$ drush en <modulename>
The composer command installs the module, and the drush command enables it. You can also enable the module via the web interface of the site when logged in as an administrator.