Magento 2 – How to Install Using Composer

magento2

Anybody do a successful install of magento 2 only via composer ?
I found a nice article here : http://magenticians.com/installing-magento-2-composer
but sadly it's outdated. I tried it and I get errors :

The requested package magento/community-edition could not be found in any version, there may be a typo in the package name.

Tried to change package to project-community-edition and got

Installation request for magento/project-community-edition *@dev -> satisfiable by magento/project-community-edition[dev-master].

magento/project-community-edition dev-master requires zendframework/zend-stdlib 2.0.3 -> no matching package found."

Best Answer

The composer.json from magenticians is not up to date anymore. The following composer.json does work as of today, tested with Ubuntu 14.04

{   "minimum-stability": "dev",
    "require": {
        "magento/project-community-edition": "*@dev"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/magento/magento2.git"
        }
    ]
}

You will need a GitHub account (because of rate limiting issues) and the git command line utility installed.

Related Topic