承接 wfk/symfony-console-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wfk/symfony-console-module

最新稳定版本:0.1.2

Composer 安装命令:

composer require wfk/symfony-console-module

包简介

Symfony Console Component for Zend Framework MVC

README 文档

README

Symfony Console Module for Zend Framework. Note that this is a full replacement for the Zend Console so your zend commands will not work any longer.

See Symfony Console on how to write commands.

Installation

Installation of DoctrineModule uses composer. For composer documentation, please refer to getcomposer.org.

  1. cd my/project/directory

  2. create or modify the composer.json file within your ZF2 application file with following contents:

    {
        "require": {
            "wfk/symfony-console-module": "*"
        }
    }
  3. install composer via curl -s https://getcomposer.org/installer | php (on windows, download https://getcomposer.org/installer and execute it with PHP). Then run php composer.phar install

  4. open my/project/directory/configs/application.config.php and add the following key to your modules:

    'SymfonyConsoleModule',

Register commands

All commands registered in config[console][commands] get pulled from the service locator and placed in the Symfony console application.

<?php
return array(
    'console' => array(
        'commands' => array(
            'MyService\LocatorAlias\ToCommand'
        )
    )
);

Running commands

To run your console app simply run index.php. From your project root:

php public/index.php <arguments>

Extra configuration

The following extra configurations are optional for the Symfony console application.

<?php
return array(
    'console' => array(
        'name' => 'Some console title',
        'version' => 'Some console version',
        'commands' => array(
            // ...
        ),
    )
);

统计信息

  • 总下载量: 17.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2012-12-22