Download the PHP package delz/console without Composer

On this page you can find all versions of the php package delz/console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package console

控制台组件

参考了Symfony的Console组件

输出样式

  1. 普通输出

  2. 设置前景色、背景色和控制选项

前景色和前景色有:black、red、green、yellow、blue、magenta(紫红色)、cyan(青色)、white、default

控制选项有:bold、underscore、blink(闪)、reverse(反转)、conceal(隐藏)

  1. 内置样式

内置了四个info\error\question\comment样式

  1. 自定义样式

命令和命令容器

  1. 添加命令

命令必须实现ICommand和集成抽象类Command

命令类必须实现execute方法,此方法有两个参数:

IInput $input 输入参数对象,获取参数可以调用方法 $input->getArguments()

IOutput $output 输入对象

下面是Command下的HelloCommand的执行

命令可以通过-v等参数获取版本,-h获取帮助信息

命令的写法可参考Command目录下HelloCommand和ListCommand的写法

  1. 命令容器

可以把多条命令加到命令池Pool

执行 php console.php 默认会出现命令列表

执行 php console.php hello 会执行HelloCommand,这里HelloCommand的name是hello

执行 php console.php hello -v 会显示HelloCommand命令的版本


All versions of console with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package delz/console contains the following files

Loading the files please wait ....