naruto

其他类别 2025-08-18
                       _        
                      | |       
_ __   __ _ _ __ _   _| |_ ___  
| '_  / _` | '__| | | | __/ _  
| | | | (_| | |  | |_| | || (_) |
|_| |_|__,_|_|   __,_|_____/ .TIGERB.cn
			
An object-oriented multi process manager for PHP

Version: 0.5.0

如何使用?

安装

naruto --prefer-dist && cd naruto ">
 composer create-project tigerb/ naruto naruto --prefer-dist && cd naruto

商业代码

 new Manager ([], function ( Process $ worker ) {
			// mock business logic
			( new Test ())-> businessLogic ();
		}
	);

跑步

回声导出naruto _path = $(pwd)>>〜/.profile && echo'export path =“ $ path:$ naruto _path/bin/bin” >>〜/.profile && source && source〜/.profile

作曲家安装

 naruto start/reload/quit/stop

管理器流程

  • 开始 :启动naruto
  • 重新加载:优雅地退出并开始工作过程
  • 退出:优雅退出
  • 停止:有力退出

规格

  • 中文
  • 英语

托多

  • 实现壳脚本以控制过程
  • 由大师实施守护程序
  • 优化日志
  • 使用轻巧的ORM Metoo
  • 实施最大执行时间为工作过程
  • 添加配置文件
  • 卸下轻巧的ORM Metoo,以保持轻量级 @2019/03/23
  • 当工人出现异常和错误时,实施电子邮件发送
  • 添加配置重新加载策略
下载源码

通过命令行克隆项目:

git clone https://github.com/TIGERB/naruto.git