承接 romannowicki/clix 相关项目开发

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

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

romannowicki/clix

最新稳定版本:1.0.0

Composer 安装命令:

composer require romannowicki/clix

包简介

Command line tool for PHP

关键字:

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage

Clix offers user friendly environment for command-line commands that can be used for any recurring task, such as cronjobs, imports, or other batch job.

  • mapping command line argument to task variables
  • display help message for task when --help parameter will be passed
  • optional and required parameters
  • default values for parameters
  • asking user for input
  • allow to hidden user input for confidential data
  • by default all task are working in quiet mode to turn on console output --verbose parameter should be used
  • options list with default value
  • cli progress bar

Installation:

via Composer:

"require": {
  "romannowicki/clix": "1.0.0"
}

Example of usage:

see example code bootstrap Basic task

To display available task list:

$ ./run 

No task specified. Select one from below :
--------------------------------------
Basic     : Basic example
HelloWord : Example HelloWord task
One/Foo   : test example 1
Two/Foo   : test example 2

To see help for specyfic task:

$ ./run HelloWord --help
**********************
Example HelloWord task
**********************
usage: ./run HelloWord [options]

options:
--help     : Show this help message (default: NULL)
  --verbose  : Show output log messages (default: NULL)
  firstname  : Firstname used for output message (MANDATORY)
  lastname   : Lastname used for output message (MANDATORY)
  --uppercase: Print name uppercase (MANDATORY)

  MORE:
  HelloWord is just an example, self explained.

To run single task: ./run HelloWord firstname=Adam lastname=Smith --uppercase --verbose

Progress Bar Example

Source Code

$ ./run One/Foo msg=test delay=1 --verbose
 29%  [###################---------------------------------------]   29/ 100

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固