定制 ftven/cli-common 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ftven/cli-common

Composer 安装命令:

composer require ftven/cli-common

包简介

Common CLI helpers classes

README 文档

README

Build Status

Usage

Add the dependency in your composer.json :

...
"require": {
    ...
    "ftven/cli-common": "1.*"
}

Then update your dependency :

$ ./composer.phar update ftven/cli-common

Then you can use it directly in your scripts :

<?php

// ...

require_once '/path/to/vendor/autoload.php';

$cli = new Ftven\Build\Cli\Application\CliApplication('mytool', '1.0.0');

$cli->addExtension(new MyNamespace\MyExtension());

$cli->run();

CliApplication is a full Symfony Console Application, so you can use all available methods on it to add commands, etc... As a best practices, we recommand not adding directly commands on the CliApplication, rather create an extension. For further information on creating extension, read CoreExtension class, or search for php-cli-xxx-extension on our GitHub.

Enjoy !

FTVEN Build Team.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 16
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固