t4web/modules

ZF2 Module for list used/installed modules.

0.3.0 2015-01-03 10:33 UTC

This package is auto-updated.

Last update: 2024-10-26 17:50:47 UTC


README

ZF2 Module for list used\installed modules

Introduction

Get information from composer.lock file and display

Requirements

Features / Goals

  • List used modules/libraries/dependencies in console [DONE]
  • List used modules in admin (backend) zone [IN PROGRESS]

Installation

Main Setup

By cloning project

Clone this project into your ./vendor/ directory.

With composer

Add this project in your composer.json:

"require": {
    "t4web/modules": "0.3.*"
}

Post installation

Enabling it in your application.config.phpfile.

<?php
return array(
    'modules' => array(
        // ...
        'Modules',
    ),
    // ...
);

Initialize

$ php public/index.php modules init

Usage

For list modules run

$ php public/index.php modules list

result will be like this:

module list example

Testing

For running tests you need install and intialize codeception, after this create/update codeception.yml in you project root and add Modules tests, like this:

include:
    - vendor/t4web/modules  # <- add modules tests to include

paths:
    log: tests/_output

settings:
    colors: true
    memory_limit: 1024M

After this you may run functional tests from your project root

$ codeception run