2017 © Pedro Peláez
 

project naruto

An object-oriented multi process manager for PHP

image

tigerb/naruto

An object-oriented multi process manager for PHP

  • Saturday, July 21, 2018
  • by TIGERB
  • Repository
  • 5 Watchers
  • 76 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 1 Open issues
  • 10 Versions
  • 18 % Grown

The README.md

                       _        
                      | |       
_ __   __ _ _ __ _   _| |_ ___  
| '_ \ / _` | '__| | | | __/ _ \ 
| | | | (_| | |  | |_| | || (_) |
|_| |_|\__,_|_|   \__,_|\__\___/ .TIGERB.cn

An object-oriented multi process manager for PHP

Version: 0.5.0

OS , (*1)

, (*2)

How to use?

Install

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

Business code


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

Run

echo export NARUTO_PATH=$(pwd) >> ~/.profile && echo 'export PATH="$PATH:$NARUTO_PATH/bin"' >> ~/.profile && source ~/.profile, (*3)

composer install, (*4)

naruto start/reload/quit/stop

Manager process

  • start <worker-num> <passwd>: start the naruto
  • reload: gracefully quit&start the worker process
  • quit: gracefully exit
  • stop: forcefully exit

Specification

TODO

  • [x] Implement a shell script to control the process
  • [x] Implement a daemon for worker by the master
  • [x] Optimize log
  • [x] Use a lightweight Orm Metoo
  • [x] Implement max execute times for the worker process
  • [x] Add config file
  • [x] Remove a lightweight Orm Metoo for keep lightweight @2019/03/23
  • [ ] Implement email send when the worker in a exception&error
  • [ ] Add config reload strategy

The Versions

21/07 2018

dev-master

9999999-dev http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

The Requires

 

by Avatar TIGERB

25/01 2018

v0.3.5

0.3.5.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

The Requires

 

by Avatar TIGERB

17/01 2018

v0.3.3

0.3.3.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

The Requires

 

by Avatar TIGERB

10/01 2018

v0.3.2

0.3.2.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

The Requires

 

by Avatar TIGERB

05/01 2018

v0.3.1

0.3.1.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

The Requires

 

by Avatar TIGERB

02/01 2018

v0.3.0

0.3.0.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

by Avatar TIGERB

17/12 2017

v0.2.1

0.2.1.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

by Avatar TIGERB

02/12 2017

v0.1.5

0.1.5.0 http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

by Avatar TIGERB

30/11 2017

0.1.0

0.1.0.0 http://naruto.tiegrb.cn/

An object-oriented multi process manager for PHP

  Sources   Download

MIT

by Avatar TIGERB

30/11 2017

dev-develop

dev-develop http://tigerb.cn

An object-oriented multi process manager for PHP

  Sources   Download

MIT

by Avatar TIGERB