2017 © Pedro Peláez
 

composer-plugin magento-composer-installer

Composer installer for Magento modules

image

bragento/magento-composer-installer

Composer installer for Magento modules

  • Tuesday, August 1, 2017
  • by bragento
  • Repository
  • 4 Watchers
  • 24 Stars
  • 11,922 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 11 Open issues
  • 14 Versions
  • 3 % Grown

The README.md

Magento Composer Installer

![Gitter](https://badges.gitter.im/Join Chat.svg), (*1)

Build Status Code Climate Scrutinizer Code Quality, (*2)

License License, (*3)

Supported Types:

magento-module
magento-core
magento-theme (currently just the same as magento-module), (*4)

Core Installer

Installation

to Install the Magento Core require magento/core in your composer.json.
Magento will be copied to the Magento root dir (Default: 'magento'), (*5)

{
    "require": {  
        "bragento/magento-composer-installer": "~1",  
        "magento/core": "~1.9"  
    },  
    "extra": {  
        "magento-root-dir": "magento"  
    }  
}

Persistent Files

There are several persistent files and directories, that will be backed up and restored after core deployment:, (*6)

var
media
app/etc/local.xml, (*7)

You can also define additional Files to be persistent such as local Modules, (*8)

{
    "require": {  
        "bragento/magento-composer-installer": "~1",  
        "magento/core": "~1.9"  
    },  
    "extra": {  
        "magento-root-dir": "magento",
        "persistent-files": [
            "somefile",
            "app/code/local/Vendor/SomeModule",
            "app/etc/modules/Vendor_SomeModule.xml"
        ]
    }  
}

Module Installer

Install a Module

Just require the Modules in your composer.json., (*9)

Many composer installable Magento extensions are listed under packages.firegento.com
There is also an example of how to add a composer package directly from a github (or any git) Repository, (*10)

{
    "repositories": [
        {
            "type": "composer",
            "url": "packages.firegento.com"
        },
        {
            "type": "git",
            "url": "https://github.com/danslo/ApiImport.git"
        }
    ],
    "require": {  
        "bragento/magento-composer-installer": "~1",  
        "magento/core": "~1.9",
        "firegento/magesetup": "~2",
        "danslo/api-import": "~1"
    },  
    "extra": {  
        "magento-root-dir": "magento"  
    }  
}

Change Deploy Strategy

By default, all Modules are deployed by symlink. You can change this behaviour with the config key 'magento-deploystrategy', (*11)

Possible values are:
symlink
copy
none (will just install the Module but not deploy it to magento root), (*12)

{ 
    "extra": {  
        "magento-deploystrategy": "copy"  
    }  
}

Overwrite Deploy Strategy per Module

You can also overwrite the Deploy Strategy for specific Modules under the config key magento-deploystrategy-overwrite, (*13)

{ 
    "repositories": [
        {
            "type": "composer",
            "url": "packages.firegento.com"
        }
    ],
    "require": {  
        "bragento/magento-composer-installer": "~1",  
        "magento/core": "~1.9",
        "firegento/magesetup": "~2"
    },  
    "extra": {  
        "magento-deploystrategy": "symlink",
        "magento-deploystrategy-overwrite": {
            "firegento/magesetup": "copy"
        }
    }  
}

Auto Append Gitignore

You can define that deployed files will be automatically added to .gitignore in magento root, (*14)

{
    "extra": {  
        "auto-append-gitignore": true
    }  
}

Contributing

make pull requests solely from the develop Branch.
run the tests before making a pull request, (*15)

The Versions

01/08 2017

dev-master

9999999-dev https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

01/08 2017

1.1.3

1.1.3.0 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

21/07 2015

1.1.2

1.1.2.0 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

21/07 2015

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

21/07 2015

dev-develop

dev-develop https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

21/07 2015

1.1.2-beta1

1.1.2.0-beta1 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

28/02 2015

1.1.1

1.1.1.0 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento bragento brandung

28/02 2015

1.1.1-beta1

1.1.1.0-beta1 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento

24/12 2014
22/12 2014

dev-feature/issue16

dev-feature/issue16 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento

17/12 2014

1.1.0

1.1.0.0 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento

14/12 2014

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento

14/12 2014

1.0.1

1.0.1.0 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento

14/12 2014

1.0.0

1.0.0.0 https://github.com/bragento/bragento-composer-installer

Composer installer for Magento modules

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

composer installer magento