PHPackages                             iwink/composer-global-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. iwink/composer-global-installer

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

iwink/composer-global-installer
===============================

Plugin to install Composer dependencies in a global directory.

v1.2.0(4y ago)33611[1 PRs](https://github.com/iwink/composer-global-installer/pulls)MITPHPPHP &gt;=7.4CI failing

Since Jun 22Pushed 3y ago5 watchersCompare

[ Source](https://github.com/iwink/composer-global-installer)[ Packagist](https://packagist.org/packages/iwink/composer-global-installer)[ RSS](/packages/iwink-composer-global-installer/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

Composer global installer
=========================

[](#composer-global-installer)

[![License](https://camo.githubusercontent.com/11e4e99653f9e9c7e29999e4602db00c258a6f1fa74f601d7a616c4e7ffe9bda/68747470733a2f2f706f7365722e707567782e6f72672f6977696e6b2f636f6d706f7365722d676c6f62616c2d696e7374616c6c65722f6c6963656e73652e706e67)](https://packagist.org/packages/iwink/composer-global-installer)[![Tag](https://camo.githubusercontent.com/16e5546d79c6dc6629f2e47d156c06d8453de0fac08c588a5aa9cfeae5ffc36b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6977696e6b2f636f6d706f7365722d676c6f62616c2d696e7374616c6c6572)](https://github.com/iwink/composer-global-installer/releases)

A plugin to install stable, [remote](https://packagist.org/) [Composer](https://getcomposer.org) packages in a global vendor directory. The path to a global installed package is `[global-vendor-dir]/[pretty-package-name]/[pretty-package-version]`; for example, `symfony/console:v5.3.1` might be found under `/usr/local/lib/composer/vendor/symfony/console/v5.3.1`. It creates symlinks in the local vendor directory (`/path/to/project/vendor`) to assist [IDEs](https://nl.wikipedia.org/wiki/Integrated_development_environment). The autoloader will point to the resolved global vendor/package directory. You should make sure the global vendor directory is writable.

Installation
------------

[](#installation)

To install this package, run `composer require iwink/composer-global-installer`. It's also possible to install the plugin global: `composer global require iwink/composer-global-installer`.

Options
-------

[](#options)

You can configure the plugin using the `extra.global-installer` key in `composer.json` (and in the global `$COMPOSER_HOME/composer.json`):

- `path`: Path to global vendor directory. (default: `/usr/local/lib/composer/vendor/`)
- `exclude`: Array of excluded package names (including vendor prefix), these packages will be installed locally.
- `exclude-bin`: Whether to exclude any packages that hold a binary. (default: `false`)
- `stabilities`: Array of supported branch stabilities. (default: `["alpha", "beta", "RC", "stable"]`)

Example:

```
{
	"extra": {
		"global-installer": {
			"path": "path/to/global/vendor/",
			"exclude": [
				"vendor/package",
				"vendor/package-two"
			],
			"exclude-bin": true,
			"stabilities": ["stable"]
		}
	}
}
```

To disable the entire plugin, you can pass `false` to the `extra.global-installer` key:

```
{
	"extra": {
		"global-installer": false
	}
}
```

Caveats
-------

[](#caveats)

### Unsupported libraries

[](#unsupported-libraries)

Some libraries, like [`laminas/laminas-zendframework-bridge`](https://packagist.org/packages/laminas/laminas-zendframework-bridge) and [`phpunit/phpunit`](https://packagist.org/packages/phpunit/phpunit), expect the package to be installed locally. If one or more of your projects depend on such libraries, you can exclude them in the global composer configuration:

`composer global config --json extra.global-installer.exclude '["laminas/laminas-zendframework-bridge", "phpunit/phpunit"]'`

### Packages with patches

[](#packages-with-patches)

If you use a seperate plugin (for example [`cweagans/composer-patches`](https://github.com/cweagans/composer-patches)) to apply patches to packages, it might not be a good idea to install those packages globally. Other projects which use the same package will receive the changes from the applied patch as well. To prevent this, we recommend excluding packages which you have patched.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~21 days

Recently: every ~48 days

Total

13

Last Release

1623d ago

Major Versions

v0.2.2 → v1.0.02021-07-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1244837?v=4)[iWink](/maintainers/iwink)[@iwink](https://github.com/iwink)

---

Top Contributors

[![danielkoster](https://avatars.githubusercontent.com/u/1506555?v=4)](https://github.com/danielkoster "danielkoster (13 commits)")[![doekenorg](https://avatars.githubusercontent.com/u/529515?v=4)](https://github.com/doekenorg "doekenorg (1 commits)")[![sjadema](https://avatars.githubusercontent.com/u/5380502?v=4)](https://github.com/sjadema "sjadema (1 commits)")

---

Tags

composer-plugininstallerplugincomposerglobal installer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iwink-composer-global-installer/health.svg)

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

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k43.3M3.3k](/packages/ergebnis-composer-normalize)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

566.3M167](/packages/automattic-jetpack-autoloader)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5346.5M600](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2125.4M213](/packages/drupal-core-project-message)[laminas/laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration

294.5M114](/packages/laminas-laminas-component-installer)[altis/core

Core module for Altis

19233.0k4](/packages/altis-core)

PHPackages © 2026

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