Magento 2 Developement

How to install magento 2 module from github using composer

Install magento 2 module from github using composer is pretty simple. We assume that you already has git and composer installed on your system. Let’s take magento2-configuration-arrayserialized as an example. Complete commands list are:

Explanation

Register the repository

First we add our repository to project composer.json file. Command syntax

It will add our repository to repositories section of magento json file. Updated section looks like

More information about composer config command can be found here – https://getcomposer.org/doc/03-cli.md#config

Download module files

It will register module in require section of composer.json and download the files from repository

Module installation

php bin/magento setup:upgradeUpgrades the Magento application, DB data, and schema
php bin/magento setup:static-content:deployDeploys static view files
php bin/magento cache:cleanCleans cache type(s)

Quick links

Magento 2: How to disable module
Magento 2: How to uninstall module
Magento 2 Command-Line Interface (CLI) Commands List

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.