承接 diversen/minimal-cli-framework 相关项目开发

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

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

diversen/minimal-cli-framework

最新稳定版本:v7.1.0

Composer 安装命令:

composer require diversen/minimal-cli-framework

包简介

A very fast and simple CLI framework

README 文档

README

A simple CLI framework with options for multiple sub-commands loaded as classes. In order to implement a command into an exisiting class you will just need to add two methods: getCommand and runCommand - and then add the object or the class to an instance of the class MinimalCli.

Install:

composer require diversen/minimal-cli-framework

Example usage

src/EchoTest.php is a command class containing a single command echo and a couple of options.

This command is added to a simple program in demos/example.php

In order to get help on the usage of the command echo:

php demos/example.php echo --help

Put a file in uppercase:

php demos/example.php echo --up README.md

Or (shorthand):

php demos/example.php echo -u README.md

Which also will output the file in uppercase

Utils

Some common CLI Utils.

See demos/utils_test.php

php demos/utils_test.php 

Colors are supported with https://github.com/php-parallel-lint/PHP-Console-Color

License: MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固