To get started with using Composer with Drupal, create a new directory and then head over to that directory within the command line.
The command used to create a new Drupal project using composer is as follows:
composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
What this does is create a new directory and set up our Drupal site structure. We will now execute the preceding command, and then Composer will run tasks to get all the packages needed. This is illustrated here:
In the preceding screenshot, we can ...