zendframework/zend-component-installer

Name: zend-component-installer

Owner: Zend Framework

Description: Composer post-package-(un)install scripts for modules and components.

Created: 2015-12-17 15:18:15.0

Updated: 2018-05-23 14:43:53.0

Pushed: 2018-05-23 14:49:45.0

Homepage: https://docs.zendframework.com/zend-component-installer/

Size: 1887

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Component Installer for Zend Framework 3 Applications

Build Status Coverage Status

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

Via Composer global install

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

mposer global require zendframework/zend-component-installer
Per project installation

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

mposer require zendframework/zend-component-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:

ra": {
f": {
"component": "Component\\Namespace",
"config-provider": "Classname\\For\\ConfigProvider",
"module": "Module\\Namespace"


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:

ra": {
f": {
"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).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.