Skip to content

Extension installation via Composer Modman

Marco Giorgetti edited this page Feb 2, 2015 · 3 revisions

Installation via Composer

Add to your composer.json file this:

{
    ...
    "require": {
        "magento-hackathon/magento-composer-installer": "*",
        "magespecialist/msp_cashondelivery": "1.2.5"
    },
    ....
    "repositories": [
        {
            "type": "vcs",
            "url": "[email protected]:magespecialist/MSP_CashOnDelivery.git"
        }
    ],
    .....
}

Execute (in your project folder):

composer install

or

composer update

Optional (based on your deploy strategies)

To deploy the module from "vendor" folder to "magento root dir" be sure you have modman installed on your system. Also you have to add this configuration to your composer.json

...
"extra":{
        "magento-root-dir":"./",
        "magento-deploystrategy":"copy",
        "magento-force": true
    }
...

"magento-root-dir":"./" => composer.json in on your magento root folder Ex.

|-> /var/www/magento/composer.json
|-> /var/www/magento/vendor

"magento-deploystrategy":"copy" => files are copied from "vendor" to "magento folder"

"magento-force": true => force copy if files in "magento folder" exist

Requirement

Installation for linux environment:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Modman is used to deploy Magento Module from "vendor" folder to "magento root dir"

Installation for linux environment:

sudo wget https://raw.github.com/colinmollenhour/modman/master/modman-installer -O /usr/local/bin/modman
sudo chmod 777 /usr/local/bin/modman

Thanks to @giuseppemorelli for initial page content