title: How to instal modules with Drupal 8 and Composer?
body: <p>I installed Drupal 8 via composer with:</p>
  
  <pre><code>composer create-project drupal-composer/drupal-project:8.x-dev my_site --stability dev --no-interaction
  </code></pre>
  
  <p>This downloaded all the files and run <code>composer install</code>. According to this tutorial - <a href="https://www.drupal.org/node/2718229" rel="nofollow noreferrer">https://www.drupal.org/node/2718229</a> - doing so this way will also configure composer.json to allow installation of modules, themes etc too via composer. Nice</p>
  
  <p>However, I'm trying to install a new module:</p>
  
  <pre><code>$ composer require drupal/codesnippet
  Using version ^1.6 for drupal/codesnippet
  ./composer.json has been updated
  &gt; DrupalProject\composer\ScriptHandler::checkComposerVersion
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
    - Installing drupal/codesnippet (1.6.0)
      Downloading: 100%         
  
  Writing lock file
  Generating autoload files
  &gt; DrupalProject\composer\ScriptHandler::createRequiredFiles
  </code></pre>
  
  <p>However, when I go to Admin Bar > Extend > Install new module, I can search for the module and it says it's not installed yet. If I try to enable/install it from there it tells me I need to download and copy to the /libraries directory:</p>
  
  <pre><code>Before you can use the CKEditor CodeSnippet module, you need to download the codesnippet plugin from ckeditor.com and place it in /libraries/codesnippet. Check the README.txt for more information. Get the plugin here. (Currently using CodeSnippet version Plugin not detected) 
  </code></pre>
  
  <p>Are these two completely different methods? How can I complete the installation with composer of this module?</p>