🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## Phar 命令行 >[success] 打包后只有一个 Phar 可执行文件 MixPHP V2 除了可以开发命令行后台服务外,框架还提供了大量 Go 风格的基础设施,让 PHP 可以像 Golang 一样开发单文件命令行应用: * 统一的 CLI 交互封装,用户只需增加命令。 * `Flag`获取命令行参数。 * `Color`带颜色的输出支持。 * `xgo + chan`、`WaitGroup`全面的原生协程支持。(需要 Swoole) * `redisPool`、`dbPool` 连接池支持。(需要 Swoole) * `Dispatcher`、`Worker`协程池支持。(需要 Swoole) > 以上全部基础设施与 Golang 使用风格几乎一至 ## 安装 安装说明:[https://github.com/mix-php/mix-phar](https://github.com/mix-php/mix-phar) ## 范例 MixPHP V2 本身有很多工具就是使用该种方式开发: * [https://github.com/mix-php/mix-pack](https://github.com/mix-php/mix-pack) * [https://github.com/mix-php/swoolefor](https://github.com/mix-php/swoolefor)