gspataro/cli 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gspataro/cli

最新稳定版本:2.0.1

Composer 安装命令:

composer require gspataro/cli

包简介

Create terminal applications with ease

关键字:

README 文档

README

A component to create easily extendible and executable CLI scripts. Includes a class to format text as terminal output in a simplified way.

Installation

requires PHP ^8.2

Require GSpataro/CLI via composer:

composer require gspataro/cli

Quick Start

use GSpataro\CLI;

// Initialize the commands collection
$commands = new CLI\CommandsCollection();

// Create a command called 'hi' that will print 'hello world' to the console
$commands->create('hi')
    ->setCallback(fn(CLI\Input $input, CLI\Output $output) => $output->print('Hello world!'));

// Initialize the component by providing a collection of commands
$handler = new CLI\Handler($commands);
$handler->deploy();

If you want to learn more about this component's features please read the WIKI.

Contribute

If you want to contribute to this repository please follow the guidelines here: CONTRIBUTING.md

Consider also following me on twitter: @gspataro96

Changelog

To see all the latest changes see the CHANGELOG.

License

The GSpataro/CLI component is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固