michaelbasford/php-cli
Composer 安装命令:
composer create-project michaelbasford/php-cli
包简介
A PHP cli application template using Symfony's Console Component.
README 文档
README
A skeleton CLI application template using Symfony's Console component.
Create a new application
$ composer create-project michaelbasford/php-cli:dev new-project-dir/
$ cd new-project-dir/
Running your application
$ chmod +x bin/application
$ bin/application
php-cli application version 0.0.1
Usage:
[options] command [arguments]
Options:
--help (-h) Display this help message.
--quiet (-q) Do not output any message.
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.
--version (-V) Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction (-n) Do not ask any interactive question.
Available commands:
help Displays help for a command
list Lists commands
example
example:command An example command.
Example Command
$ bin/application example:command
Hello, World!
Remove Example
Remove the following lines from bin/application
$application->add(
new Example\ExampleCommand($container)
);
Then remove the folder
$ rm -r src/Example
Included Components
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-27