Drupal 8 - Installing with composer

The best way to install Drupal 8 is by using Composer. There are several options, but the most widely used and easiest way is to use Composer template for Drupal projects. To install Drupal 8 use the following command:

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction

or if you want to install it in the current directory use this:

composer create-project drupal-composer/drupal-project:8.x-dev . --no-interaction

To update the existing project that is based on this template use the following command:

composer update drupal/core webflo/drupal-core-require-dev symfony/* --with-dependencies