How to Install Magento 2 using Composer?

Follow Steps to install Magento 2 on you system using Composer.

  1. Download and Install `Composer`  using Curl or Setup
  2. Verify ext-xsl, php_pdo_mysql and ext-inlt is enabled from your .ini file.
  3. Run the command to install magento 2.
    composer create-project --repository-url= magento/project-community-edition
  4. Create a Database from `phpmyadmin`, Example: magento2
  5. Go to setup wizard from `localhost/project-community-edition`
  6. Follow the Setup wizard options

Ref. :