Skip to content

magento-hackathon/magento2-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Magento 2 standard installation using composer


Official installation note: Since Magento released officialy version 2.0.0, they added the composer project-create command in the documentation. You can find more information here: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install.html#integrator-first-composer-ce


Version of Magento

As you probably know, Composer is used in Magento 2.
One of the fine part is that Magento 2 can be totally (ok, almost) included in the vendor directory.

Use it (aka Install Magento 2 using composer)

It is really easy to use. But please read the Requirements part below before trying to install Magento 2 as a composer dependency.

The create-project command accepts multiple arguments like:

  • -s dev: set the stability to dev
  • --ignore-platform-reqs: ignore the platform requirements (version of PHP…)
  • --prefer-source: use git clone instead of using the cache if you have one for the dependencies

According to this if we are on the machine where you want to run Magento 2, you just have to run:

composer create-project magento-hackathon/magento2-standard destination

Replace the destination with the name of the directory where you want to put Magento 2.

If you are, like me, on your own machine and you don't have all the dependencies for Magento (because you use virtual machines):

composer create-project --ignore-platform-reqs magento-hackathon/magento2-standard destination

Demos

Video on Toutube

Example with asciicast

What does it do?

It's really simple in fact. We just say to composer that Magento 2 is a dependency and we update the autoload to make the setup wizard work.

No big deal. Just the time to find out how it works.

Requirements

This repository isn't on packagist yet. And because of that you can't run the create-project command of composer with this beautiful code.

You have to add this repository into your composer global configuration.

Please run this command in your console: (or your VM, or your server…):

composer config -g repositories.magento2-standard vcs https://github.com/magento-hackathon/magento2-standard

Questions & Answers

  • I use a VM and I want to clone Magento 2 directly in my computer but some requirements are missing. How can I do?

    If like me you want to use the performance of the IO of your own machine and probably use your personnal token on github you can ask to composer to not check on the platform requirements:

    You just have to use the command line option --ignore-platform-reqs in your composer command.

    See the create-project command.

How to contribute

Feel free to send pull requests.

If you want to use your own repository and use the last commit for your tests, you have to use the -s dev argument in your composer command, like:

composer create-project -s dev magento-hackathon/magento2-standard destination

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •