定制 bheisig/cli 二次开发

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

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

bheisig/cli

Composer 安装命令:

composer require bheisig/cli

包简介

Framework for command line interfaces

关键字:

README 文档

README

PHP Framework for command line interfaces

Latest Stable Version Minimum PHP Version Build Status

About

You want an easy way to build a command line tool written in PHP? You are bored of big, over-engineered frameworks? And last but not least, you do not want to reinvent the wheel? -- Great, this could be the (almost) perfect solution for your next project.

The goal is to build intuitive CLI tools. Nobody likes to read documentation, so make your application self-descriptive!

Features

  • Easy-to-install via Composer
  • Perfectly suited to create a single binary file from your application
  • Simple interface
  • Separate your features by commands
  • Runs on POSIX-like systems (GNU/Linux, MacOS, …) and Windows
  • Error/exception handling
  • Optional colored output based on log level
  • Log to standard or error output
  • Pre-defined usage output
  • JSON-based configuration with defaults, system-wide, user defined and runtime settings
  • Support for long and short options with optional or required values
  • Pre-defined options for verbosity/quietness, usage, version information, additional configuration files, runtime settings, configuration test
  • Verbosity mode outputs human-readable runtime in seconds and peak memory usage

Example

For a simple application look at the example/ folder.

Requirements

  • PHP, version 7.1 or higher (7.0 works but is deprecated, 7.3 is recommended, unreleased 7.4 should work)
  • PHP modules calendar, cli, date, filter and json

Installation

Go to your project folder and require this framework via Composer:

composer require bheisig/cli

Update

Composer is the way to go:

composer update

Copyright & License

Copyright (C) 2018-19 Benjamin Heisig

Licensed under the GNU Affero GPL version 3 or later (AGPLv3+). This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2018-01-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固