PHPackages                             elvis-bi/zf2-module-install - 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. elvis-bi/zf2-module-install

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

elvis-bi/zf2-module-install
===========================

提供zf2模块的composer安装

0.1.0(13y ago)014MITPHP

Since May 26Pushed 13y ago1 watchersCompare

[ Source](https://github.com/elvis-bi/Zf2ModuleInstall)[ Packagist](https://packagist.org/packages/elvis-bi/zf2-module-install)[ Docs](https://github.com/elvis-bi/Zf2ModuleInstall)[ RSS](/packages/elvis-bi-zf2-module-install/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Zf2ModuleInstall
================

[](#zf2moduleinstall)

介绍
--

[](#介绍)

为composer提供ZendFramework2.x模块的安装服务。目前只提供将模块安装到项目的module 目录下，需要手动修改application.config.php文件注册模块。

composer.json中的name必需以“-”号分隔单词，最终安装的模块目录名为去掉“-"号后每个 单词首字母大写。例如：一个叫TimeLine的模块的composer.json中name为“xxx/time-line” 安装后的目录名为TimeLine。

使用
--

[](#使用)

在模块的composer.json文件中定义type为zf2-module

```
...
"type": "zf2-module"
...

```

将Zf2ModuleInstall添加到依赖列表中

```
"require" : {
    ...
    "elvis-bi/zf2-module-install": "0.1.0",
    ...
}

```

TODO
----

[](#todo)

1. 自动将模块添加到application.config.php的modules里去。
2. 提供一个安装勾子可以进行一些初始化操作，例如初始化数据库等。

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4784d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62ec7dee917f3a2b1387a547aa4542e00ed6f9b9aa4ef84fde88ba86cb2a7248?d=identicon)[elvis\_bi](/maintainers/elvis_bi)

---

Top Contributors

[![coderbiq](https://avatars.githubusercontent.com/u/717949?v=4)](https://github.com/coderbiq "coderbiq (8 commits)")

---

Tags

zf2module install

### Embed Badge

![Health badge](/badges/elvis-bi-zf2-module-install/health.svg)

```
[![Health](https://phpackages.com/badges/elvis-bi-zf2-module-install/health.svg)](https://phpackages.com/packages/elvis-bi-zf2-module-install)
```

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[slm/google-analytics

Google Analytics tracking integration for Zend Framework 2

4080.3k](/packages/slm-google-analytics)[dkcwd/dkcwd-zf2-munee

Zend Framework 2 module leveraging 'munee' an asset optimisation library developed by Cody Lundquist. You can find munee at http://github.com/meenie/munee

102.1k](/packages/dkcwd-dkcwd-zf2-munee)

PHPackages © 2026

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