andreypostal/cli
最新稳定版本:v1.0.0
Composer 安装命令:
composer require andreypostal/cli
包简介
A simple and easy to use library with no dependencies for creating pretty and organized CLI apps in PHP. Even has some fun progress bars.
README 文档
README
🧙♂️ Easy CLI for PHP
A simple and easy to use library with no dependencies for creating pretty and organized CLI apps in PHP.
No dependencies, simple and easy to understand. You can create simple CLI tools or complex one and things wont get messy!! 😄
Installation
composer require andreypostal/cli
Basic Usage
$app = new App( appName: 'MyApp', description: 'My app has a cool description', cmd: 'php cmd', params: [], commands: [ new Command( key: 'run', description: 'This action will run soon', service: [ 'handler' => static function(Context $context): void { App::console('It is so easy!!!'); }, ], ), ], ); $app->run($argv);
Docs
Examples
- Basic Handler
- Basic Service
- Required Params Validation
- Boolean Flag
- Progress Bar
- Infinite Progress Bar
- Complete
About
Author
Andrey Postal - andreypostal@gmail.com
License
CLI is licensed under the Apache License 2.0 - see the LICENSE file for details
Acknowledgements
Highly inspired by the Go library urfave/cli
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-05-02
