magento-hackathon/magento2-standard

Name: magento2-standard

Owner: FireGento e. V. - Hackathons

Description: null

Created: 2015-10-25 09:18:07.0

Updated: 2018-03-30 01:02:32.0

Pushed: 2016-06-02 14:01:08.0

Homepage: null

Size: 11

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

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
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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.