PHPackages                             royalcms/composer-installers-extender - 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. royalcms/composer-installers-extender

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

royalcms/composer-installers-extender
=====================================

Extend the composer/installers plugin to accept any arbitrary package type.

v2.1.4(5y ago)019MITPHPPHP &gt;=7.1

Since Jan 7Pushed 5y agoCompare

[ Source](https://github.com/royalcms/composer-installers-extender)[ Packagist](https://packagist.org/packages/royalcms/composer-installers-extender)[ Docs](http://www.oomphinc.com/)[ RSS](/packages/royalcms-composer-installers-extender/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (11)Used By (0)

Composer Installers Extender
============================

[](#composer-installers-extender)

The `composer-installers-extender` is a plugin for [Composer](https://getcomposer.org) that allows any package to be installed to a directory other than the default `vendor`directory within a project on a package-by-package basis. This plugin extends the [`composer/installers`](https://github.com/composer/installers) plugin to allow any arbitrary package type to be handled by their custom installer.

The [`composer/installers`](https://github.com/composer/installers) plugin has a finite set of supported package types and we recognize the need for any arbitrary package type to be installed to a specific directory other than `vendor`. This plugin allows additional package types to be handled by the [`composer/installers`](https://github.com/composer/installers) plugin, benefiting from their explicit install path mapping and token replacement of package properties.

How to Install
--------------

[](#how-to-install)

Add `oomphinc/composer-installers-extender` as a dependency of your project:

```
$ composer require oomphinc/composer-installers-extender
```

This plugin requires at least PHP 7.1. If you're using a lower version of PHP use the latest stable 1.x release:

```
$ composer require oomphinc/composer-installers-extender:^1.1
```

How to Use
----------

[](#how-to-use)

The [`composer/installers`](https://github.com/composer/installers) plugin is a dependency of this plugin and will be automatically required as well if not already required.

To support additional package types, add an array of these types in the `extra` property in your `composer.json`:

```
{
    "extra": {
        "installer-types": ["library"]
    }
}
```

Then, you can add mappings for packages of these types in the same way that you would add package types that are supported by [`composer/installers`](https://github.com/composer/installers):

```
{
    "extra": {
        "installer-types": ["library"],
        "installer-paths": {
            "special/package/": ["my/package"],
            "path/to/libraries/{$name}/": ["type:library"]
        }
    }
}
```

By default, packages that do not specify a `type` will be considered the type `library`. Adding support for this type allows any of these packages to be placed in a different install path.

If a type has been added to `installer-types`, the plugin will attempt to find an explicit installer path in the mapping. If there is no match either by name or by type, the default installer path for all packages will be used instead.

Please see the README for [`composer/installers`](https://github.com/composer/installers) to see the supported syntax for package and type matching as well as the supported replacement tokens in the path (e.g. `{$name}`).

License
-------

[](#license)

[MIT License](LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 65% of commits — single point of failure

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 ~203 days

Recently: every ~0 days

Total

10

Last Release

1949d ago

Major Versions

v1.1.2 → v2.0.02020-08-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c99ee5ba2eb7de81fe449d469bb146116bab62127ea2970f7a612a48e6444a5?d=identicon)[royalwang](/maintainers/royalwang)

---

Top Contributors

[![balbuf](https://avatars.githubusercontent.com/u/3887845?v=4)](https://github.com/balbuf "balbuf (13 commits)")[![bendoh](https://avatars.githubusercontent.com/u/1833896?v=4)](https://github.com/bendoh "bendoh (2 commits)")[![cfoellmann](https://avatars.githubusercontent.com/u/1256090?v=4)](https://github.com/cfoellmann "cfoellmann (1 commits)")[![hussainweb](https://avatars.githubusercontent.com/u/1040271?v=4)](https://github.com/hussainweb "hussainweb (1 commits)")[![johnpicozzi](https://avatars.githubusercontent.com/u/6811770?v=4)](https://github.com/johnpicozzi "johnpicozzi (1 commits)")[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (1 commits)")[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/royalcms-composer-installers-extender/health.svg)

```
[![Health](https://phpackages.com/badges/royalcms-composer-installers-extender/health.svg)](https://phpackages.com/packages/royalcms-composer-installers-extender)
```

###  Alternatives

[drupal/console-extend-plugin

Drupal Console Extend Plugin

13214.3M5](/packages/drupal-console-extend-plugin)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[php-composter/php-composter

Git Hooks Management through Composer.

10525.1k11](/packages/php-composter-php-composter)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[uma/composer-psysh

No-frills PsySH-Composer plugin

183.2k](/packages/uma-composer-psysh)[winter/wn-seo-plugin

Winter CMS plugin for managing SEO tags

106.3k](/packages/winter-wn-seo-plugin)

PHPackages © 2026

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