PHPackages                             neilime/zf2-deploy-module - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. neilime/zf2-deploy-module

AbandonedArchivedLibrary[DevOps &amp; Deployment](/categories/devops)

neilime/zf2-deploy-module
=========================

ZF2 Deploy Module is a Zend Framework 2 provides tools for deploying ZF2 module into a ZendSkeletonApplication to display / tests module's views

v1.0(12y ago)144MITPHPPHP &gt;=5.3.3

Since Oct 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/neilime/zf2-deploy-module)[ Packagist](https://packagist.org/packages/neilime/zf2-deploy-module)[ Docs](https://github.com/neilime/zf2-deploy-module)[ RSS](/packages/neilime-zf2-deploy-module/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

ZF2 Deploy Module
=================

[](#zf2-deploy-module)

**⚠️ This module is for Zend Framework 2, it is deprecated ⚠️**

[![Build Status](https://camo.githubusercontent.com/77a48f1a3aff2f2cef42ae617d1caeb6d888569f352141c219ed5d0a405ee118/68747470733a2f2f7472617669732d63692e6f72672f6e65696c696d652f7a66322d6465706c6f792d6d6f64756c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/neilime/zf2-deploy-module)[![Latest Stable Version](https://camo.githubusercontent.com/c3ce886e339f1e929a1023ddcb6cb3f3c6cfafb535d1e68cd0c7965d54c02585/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7a66322d6465706c6f792d6d6f64756c652f762f737461626c652e706e67)](https://packagist.org/packages/neilime/zf2-deploy-module)[![Total Downloads](https://camo.githubusercontent.com/ee8ab49373d14478fbbd89dc169570ef30ab83f994fe3da50c6f12b024880ab2/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7a66322d6465706c6f792d6d6f64756c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/neilime/zf2-deploy-module)

NOTE : If you want to contribute don't hesitate, I'll review any PR.

Introduction
------------

[](#introduction)

**ZF2 Deploy Module** provides tools for deploying ZF2 modules into a ZendSkeletonApplication to display / tests module's views. It is useful for ZF2 modules developers, in order to render modules views (for humans, selenium...).

The benefit of this tool is that it does not change the module to deploy (no moving / changing / adding files), it manages the autoloading, [composer](http://getcomposer.org/) (install / update), and adding the module(s) in the application configuration.

Contributing
------------

[](#contributing)

If you wish to contribute to ZF2 Deploy Module, please read both the [CONTRIBUTING.md](CONTRIBUTING.md) file.

Requirements
------------

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2) (2.\*)

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

[](#installation)

### Main Setup

[](#main-setup)

#### By cloning project

[](#by-cloning-project)

1. Clone this project into your `./vendor/` directory.

#### With composer

[](#with-composer)

1. Add this project in your composer.json:

    ```
    "require_dev": {
        "neilime/zf2-deploy-module": "1.*"
    }
    ```

    Or

    ```
    "require": {
        "neilime/zf2-deploy-module": "1.*"
    }
    ```
2. Now tell composer to download **ZF2 Deploy Module** by running the command:

    ```
    $ php composer.phar update
    ```

How to use *ZF2 Deploy Module*
------------------------------

[](#how-to-use-zf2-deploy-module)

*ZF2 Deploy Module* provides console tools.

### Usage

[](#usage)

```
php ./vendor/bin/deploy_module.php [args]
```

### Arguments

[](#arguments)

```
--help|-h                   Get usage message
--module|-m [  ] 	Module path to deploy; if none provided, assumes current directory
--dir|-d [  ]    	Directory path where to deploy the module (ex: apache/www/my-module), the directory could be created if needed
--modules|-a [  ]	(optionnal) Additionnal module namespaces (comma separated) to be used in the application
--zapp|-z [  ]   	(optionnal) ZendSkeletonApplication file path, allows locale or remote directory, allows archive (Phar, Rar, Zip) depending on PHP installed libraries
--composer|-c [  ]  (optionnal) Composer.phar file path, allows locale or remote directory
--overwrite|-w 				Whether or not to overwrite existing deployed ZendSkeletonApplication
--verbose|-v 				Whether or not to display execution trace

```

Exemple
-------

[](#exemple)

### Deploy a module to run it with EasyPhp (windows)

[](#deploy-a-module-to-run-it-with-easyphp-windows)

This exemple expects :

- EasyPhp &amp; PHP is installed on windows
- A virtual host named "[www.test-module.com](http://www.test-module.com)" redirect to DocumentRoot "C:\\Program Files\\EasyPHP-DevServer\\data\\localweb\\TestModule\\public"

1. Install **ZF2 Deploy Module** into the your module project as explain above
2. Deploy module into EasyPhp "\\TestModule"

    ```
    cd path\to\your\module\directory
    php ./vendor/bin/deploy_module.php -d "C:\Program Files\EasyPHP-DevServer\data\localweb\TestModule" -v
    ```
3. Display it in your browser Go to

### Deploy a module for Selenium tests with "travis-ci.org"

[](#deploy-a-module-for-selenium-tests-with-travis-ciorg)

1. Edit your .travis.yml ```
    before_install:
    ```

Update composer
===============

[](#update-composer)

- composer self-update

Install project
===============

[](#install-project)

- composer install --dev -o #deploy module
- mkdir ../deploy
- php ./vendor/bin/deploy\_module.php -d ../deploy -v

Install php packages
====================

[](#install-php-packages)

- "sudo apt-get update &gt; /dev/null"
- "sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl"

Create VirtualHost
==================

[](#create-virtualhost)

- sudo sed -i -e "s,/var/www,$(pwd)/../deploy/public,g" /etc/apache2/sites-available/default
- sudo sed -i -e "/DocumentRoot/i\\ServerName test-selenium.dev" /etc/apache2/sites-available/default
- echo "127.0.0.1 test-selenium.dev" | sudo tee -a /etc/hosts
- "sudo /etc/init.d/apache2 restart" #Run selenium
- "sh -e /etc/init.d/xvfb start"
- "export DISPLAY=:99.0"
- "wget "
- "java -jar selenium-server-standalone-2.25.0.jar &gt; /dev/null 2&gt;&amp;1 &amp;"
- "sleep 30" ```

    ```

2. Run the build

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

4647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cd480ea3050a483f3e08c365a6d847402b4edb110d706111d13ef33b845ef9f?d=identicon)[neilime](/maintainers/neilime)

---

Top Contributors

[![neilime](https://avatars.githubusercontent.com/u/314088?v=4)](https://github.com/neilime "neilime (11 commits)")

---

Tags

zend framework 2Module developmentModule deployment

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/neilime-zf2-deploy-module/health.svg)

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

PHPackages © 2026

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