Drupal 8 - install a contributed module
# There is now a Composer-based solution for adding and removing modules.
# It revolves around the concept running a set of commands that request the package to be installed into the site (thereby making Composer aware of its requirement, and then installing it.
# This is two individual steps (one after the other).
cd <project root>
composer require drupal/<module name>
# Drupal will now be aware that it must include that package within the files, and will have it ready to go.
# All you will need to do now, is enable the module in the admin area.