uttamrabadiya/console-components
Composer 安装命令:
composer require uttamrabadiya/console-components
包简介
Lightweight PHP package designed to enhance the output of your CLI applications using Termwind & Laravel Prompts
README 文档
README
Console Components is a lightweight PHP package designed to enhance the output of your CLI applications. With Console Components, you can easily print beautiful and formatted output to the terminal using simple methods provided by the package. Say goodbye to dull and monotonous terminal output and give your applications a professional and polished look with Terminal Beautifier.
These components are extracted from Laravel's console package, that helps individual applications outside from Laravel environment.
Installation:
You can install Console Components via Composer:
composer require uttamrabadiya/console-components
Usage:
use ConsoleComponents\Writer; Writer::info('Hello World! PHP is beautiful');
use ConsoleComponents\Writer; Writer::warn('Please check message');
use ConsoleComponents\Writer; Writer::error('Something went wrong!');
use ConsoleComponents\Writer; Writer::alert('Hello World!');
use ConsoleComponents\Writer; Writer::ask('What would you like to build today?'); Writer::ask('Something secret to ask', hidden: true); // Ask secretly
use ConsoleComponents\Writer; Writer::askWithCompletion('How are you today?', ['Good', 'Better', 'Ok Ok']);
use ConsoleComponents\Writer; Writer::bulletList(['Item 1', 'Item 2', 'Item 3']);
use ConsoleComponents\Writer; Writer::choice('What are you working on today?', ['Open source application', 'Building Profile', 'Inventing new feature']);
use ConsoleComponents\Writer; Writer::confirm('Are you sure you want to continue?');
use ConsoleComponents\Writer; Writer::twoColumnDetail('PHP', 'Installing'); Writer::task('PHP');
use ConsoleComponents\Writer; Writer::table(['Applications', 'Version'], [['PHP', '8.2'], ['NGINX', 1.2], ['MySQL', 8.0]]);
License
Console Components is open-sourced software licensed under the MIT license
uttamrabadiya/console-components 适用场景与选型建议
uttamrabadiya/console-components 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.42k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2024 年 04 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 uttamrabadiya/console-components 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 uttamrabadiya/console-components 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 9
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-28










