PHPackages                             suntechsoft/zend-component-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. suntechsoft/zend-component-installer

ActiveComposer-plugin

suntechsoft/zend-component-installer
====================================

Composer plugin for injecting modules and configuration providers into application configuration

3.1.0(5y ago)071BSD-3-ClausePHPPHP ^7.1

Since Mar 15Pushed 5y agoCompare

[ Source](https://github.com/suntechsoft/zend-component-installer)[ Packagist](https://packagist.org/packages/suntechsoft/zend-component-installer)[ RSS](/packages/suntechsoft-zend-component-installer/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (6)Versions (21)Used By (1)

Component Installer for Zend Framework 3 and Expressive Applications
====================================================================

[](#component-installer-for-zend-framework-3-and-expressive-applications)

[![Build Status](https://camo.githubusercontent.com/f695f35ed5d850a26a65d2c9a9bfc7dca5de853dbed2d88365a42ade3e075afd/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d636f6d706f6e656e742d696e7374616c6c65722e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-component-installer)[![Coverage Status](https://camo.githubusercontent.com/8b5ae1dfd89163b11b490afdbbb81b5330783624fbfbc037af4a88053bed4d58/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d636f6d706f6e656e742d696e7374616c6c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-component-installer?branch=master)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-component-installer](https://github.com/laminas/laminas-component-installer).

This repository contains the Composer plugin class `Zend\ComponentInstaller\ComponentInstaller`, which provides Composer event hooks for the events:

- post-package-install
- post-package-uninstall

Via Composer global install
---------------------------

[](#via-composer-global-install)

To install the utility for use with all projects you use:

```
$ composer global require zendframework/zend-component-installer
```

Per project installation
------------------------

[](#per-project-installation)

To install the utility for use with a specific project already managed by composer:

```
$ composer require zendframework/zend-component-installer
```

Writing packages that utilize the installer
-------------------------------------------

[](#writing-packages-that-utilize-the-installer)

Packages can opt-in to the workflow from zend-component-installer by defining one or more of the following keys under the `extra.zf` configuration in their `composer.json` file:

```
"extra": {
  "zf": {
    "component": "Component\\Namespace",
    "config-provider": "Classname\\For\\ConfigProvider",
    "module": "Module\\Namespace"
  }
}
```

- A **component** is for use specifically with zend-mvc + zend-modulemanager; a `Module` class **must** be present in the namespace associated with it. The setting indicates a low-level component that should be injected to the top of the modules list of one of:

    - `config/application.config.php`
    - `config/modules.config.php`
    - `config/development.config.php`
- A **module** is for use specifically with zend-mvc + zend-modulemanager; a `Module` class **must** be present in the namespace associated with it. The setting indicates a userland or third-party module that should be injected to the bottom of the modules list of one of:

    - `config/application.config.php`
    - `config/modules.config.php`
    - `config/development.config.php`
- A **config-provider** is for use with applications that utilize [expressive-config-manager](https://github.com/mtymek/expressive-config-manager)or [zend-config-aggregator](https://github.com/zendframework/zend-config-aggregator)(which may or may not be Expressive applications). The class listed must be an invokable that returns an array of configuration, and will be injected at the top of:

    - `config/config.php`

Whitelisting packages to install automatically
----------------------------------------------

[](#whitelisting-packages-to-install-automatically)

At the project level, you can mark packages that expose configuration providers and modules that you want to automatically inject via the `component-whitelist`key:

```
"extra": {
  "zf": {
    "component-whitelist": [
      "zendframework/zend-expressive",
      "zendframework/zend-expressive-helpers"
    ]
  }
}
```

This configuration must be made at the root package level (the package *consuming* configuration providing packages).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 69.2% 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 ~97 days

Recently: every ~264 days

Total

19

Last Release

1956d ago

Major Versions

0.7.1 → 1.0.02017-04-25

1.1.1 → 2.0.02018-02-06

2.1.2 → 3.0.02020-11-30

PHP version history (3 changes)0.1.0PHP ^5.5 || ^7.0

0.3.0PHP ^5.6 || ^7.0

2.0.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a45f2f9f5bd16d3781a20fbc1e62596c7edee704acd5cf65a199f7b4afb05773?d=identicon)[Paul Kamensky](/maintainers/Paul%20Kamensky)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (231 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (64 commits)")[![malinink](https://avatars.githubusercontent.com/u/5726553?v=4)](https://github.com/malinink "malinink (9 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (9 commits)")[![froschdesign](https://avatars.githubusercontent.com/u/103362?v=4)](https://github.com/froschdesign "froschdesign (5 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (5 commits)")[![stefanotorresi](https://avatars.githubusercontent.com/u/2952427?v=4)](https://github.com/stefanotorresi "stefanotorresi (5 commits)")[![tylkomat](https://avatars.githubusercontent.com/u/815915?v=4)](https://github.com/tylkomat "tylkomat (3 commits)")[![SlayerBirden](https://avatars.githubusercontent.com/u/1726160?v=4)](https://github.com/SlayerBirden "SlayerBirden (2 commits)")[![eimanavicius](https://avatars.githubusercontent.com/u/2480075?v=4)](https://github.com/eimanavicius "eimanavicius (1 commits)")

---

Tags

plugincomposerZendFrameworkzfcomponent installer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/suntechsoft-zend-component-installer/health.svg)

```
[![Health](https://phpackages.com/badges/suntechsoft-zend-component-installer/health.svg)](https://phpackages.com/packages/suntechsoft-zend-component-installer)
```

###  Alternatives

[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[laminas/laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration

294.1M95](/packages/laminas-laminas-component-installer)[sllh/composer-versions-check

Checks if packages are up to date to last major versions after update

2352.4M16](/packages/sllh-composer-versions-check)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)

PHPackages © 2026

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