PHPackages                             magenxcommerce/magento-composer-installer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. magenxcommerce/magento-composer-installer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

magenxcommerce/magento-composer-installer
=========================================

Composer installer for Magento modules

0.2.1(4y ago)012010OSL-3.0PHP

Since Oct 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/magenxcommerce/magento-composer-installer)[ Packagist](https://packagist.org/packages/magenxcommerce/magento-composer-installer)[ Docs](https://github.com/magento/magento-composer-installer)[ RSS](/packages/magenxcommerce-magento-composer-installer/feed)WikiDiscussions 0.2.1 Synced 3d ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (10)

Magento Composer Installer
==========================

[](#magento-composer-installer)

This is a fork of the [Magento Composer Installer](https://github.com/magento-hackathon/magento-composer-installer) repo that provides support for Magento 2 components (modules, themes, language packages, libraries and components).

Usage
-----

[](#usage)

In the component's `composer.json`, specify:

- `type`, type of Magento 2 component.
- `extra/map`, list of files to move and their paths relative to the Magento root directory.
- `extra/chmod`, list of permissions that should be set for files.

    **Note**:

    - `extra/map` is required only if your component needs to be moved to a location other than `/vendor`. Otherwise, omit this section.
    - `extra/chmod` is required only if you need to set specific permissions for files.

Supported Components
--------------------

[](#supported-components)

The following list explains the use of `type` in `composer.json`.

### Magento Module

[](#magento-module)

`"type": "magento2-module"`

Installation location: Default vendor directory or as defined in `extra/map`

Example:

```
{
    "name": "magento/module-core",
    "description": "N/A",
    "require": {
        ...
    },
    "type": "magento2-module",
    "extra": {
        "map": [
            [
                "*",
                "Magento/Core"
            ]
        ]
    }
}
```

Final location is `/app/code/Magento/Core`

### Magento Theme

[](#magento-theme)

`"type": "magento2-theme"`

Installation location: `app/design`

Example:

```
{
    "name": "magento/theme-frontend-luma",
    "description": "N/A",
    "require": {
        ...
    },
    "type": "magento2-theme",
    "extra": {
        "map": [
            [
                "*",
                "frontend/Magento/luma"
            ]
        ]
    }
}
```

Final location is `/app/design/frontend/Magento/luma`

### Magento Language Package

[](#magento-language-package)

`"type": "magento2-language"`

Installation location: `app/i18n`

Example:

```
{
    "name": "magento/language-de_de",
    "description": "German (Germany) language",
    "require": {
        ...
    },
    "type": "magento2-language",
    "extra": {
        "map": [
            [
                "*",
                "Magento/de_DE"
            ]
        ]
    }
}
```

Final location is `/app/i18n/Magento/de_DE`

### Magento Library

[](#magento-library)

`"type": "magento2-library"`

Support for libraries located in `lib/internal` instead of in the `vendor` directory.

Example:

```
{
    "name": "magento/framework",
    "description": "N/A",
    "require": {
       ...
    },
    "type": "magento2-library",
    "extra": {
        "map": [
            [
                "*",
                "Magento/Framework"
            ]
        ]
    }
}
```

Final location is `/lib/internal/Magento/Framework`

### Magento Component

[](#magento-component)

`"type": "magento2-component"`

Installation location: Magento root directory

Example:

```
{
    "name": "magento/migration-tool",
    "description": "N/A",
    "require": {
        ...
    },
    "type": "magento2-component",
    "extra": {
        "map": [
            [
                "*",
                "dev/tools/Magento/Tools/Migration"
            ]
        ]
    }
}
```

Final location is `/dev/tools/Magento/Tools/Migration`

Autoload
--------

[](#autoload)

After handling all Magento components, `/app/etc/vendor_path.php` specifies the path to your `vendor` directory.

This information allows the Magento application to utilize the Composer autoloader for any libraries installed in the `vendor` directory. The path to `vendor` varies between particular installations and depends on the `magento_root` setting for the Magento Composer installer. That's why it should be generated for each installation.

You must run `composer install` to install dependencies for a new application or `composer update` to update dependencies for an existing application.

Deployment Strategy
-------------------

[](#deployment-strategy)

The Magneto Composer Installer uses the `copy` deployment strategy. It copies each file or directory from the `vendor` directory to its designated location based on the `extra/map` section in the component's `composer.json`.

There are [other deployment strategies](https://github.com/magento/magento-composer-installer/blob/master/doc/Deploy.md) that could be used; however, we don't guarantee that any of them will work.

Usage `extra/chmod`
-------------------

[](#usage-extrachmod)

The following example shows how you can set specific permissions for files.

Example:

```
{
    "name": "magento/module-sample",
    "description": "N/A",
    "require": {
        ...
    },
    "type": "magento2-module",
    "extra": {
         "chmod": [
            {
                "mask": "0755",
                "path": "bin/magento"
            },
            {
                "mask": "0644",
                "path": "some_dir/file.jpg"
            }
        ]
    }
}
```

`mask` is a bit mask for chmod command

`path` is a path to file relative to the Magento root folder

Notes
=====

[](#notes)

- The extra-&gt;magento-root-dir option is no longer supported. It displays only to preseve backward compatibility.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1663d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/652aa98d25f6bb0dbacf7a805a9110b66e83d8222c60ca2d1b20fa31782a81d3?d=identicon)[magenxcommerce](/maintainers/magenxcommerce)

---

Tags

magentocomposer-installer

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/magenxcommerce-magento-composer-installer/health.svg)

```
[![Health](https://phpackages.com/badges/magenxcommerce-magento-composer-installer/health.svg)](https://phpackages.com/packages/magenxcommerce-magento-composer-installer)
```

###  Alternatives

[magento/magento-composer-installer

Composer installer for Magento modules

7523.3M318](/packages/magento-magento-composer-installer)[magento-hackathon/magento-composer-installer

Composer installer for Magento modules

214757.6k374](/packages/magento-hackathon-magento-composer-installer)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96151.6k3](/packages/yireo-magento2-extensionchecker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
