{"id":21743704,"url":"https://github.com/tigerb/naruto","last_synced_at":"2025-04-09T10:09:29.225Z","repository":{"id":48511912,"uuid":"111038315","full_name":"TIGERB/naruto","owner":"TIGERB","description":"An object-oriented multi process manager for PHP :robot:","archived":false,"fork":false,"pushed_at":"2024-05-19T08:13:35.000Z","size":62,"stargazers_count":135,"open_issues_count":2,"forks_count":33,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-29T11:11:20.746Z","etag":null,"topics":["php","php-cli","php-framework","php-library","php-multi-process","php-task","task-manager"],"latest_commit_sha":null,"homepage":"http://naruto.tigerb.cn","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TIGERB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-17T00:35:29.000Z","updated_at":"2024-08-29T15:57:06.000Z","dependencies_parsed_at":"2024-11-26T07:08:50.886Z","dependency_job_id":"1bb5fce5-8ee9-4d2d-8ce3-ef537aa033db","html_url":"https://github.com/TIGERB/naruto","commit_stats":{"total_commits":42,"total_committers":3,"mean_commits":14.0,"dds":0.2142857142857143,"last_synced_commit":"670188a5f1109a162837a9fe6e911c5c2ec3a17a"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIGERB%2Fnaruto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIGERB%2Fnaruto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIGERB%2Fnaruto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TIGERB%2Fnaruto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TIGERB","download_url":"https://codeload.github.com/TIGERB/naruto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018061,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","php-cli","php-framework","php-library","php-multi-process","php-task","task-manager"],"created_at":"2024-11-26T07:08:48.268Z","updated_at":"2025-04-09T10:09:29.208Z","avatar_url":"https://github.com/TIGERB.png","language":"PHP","readme":"```\n                       _        \n                      | |       \n_ __   __ _ _ __ _   _| |_ ___  \n| '_ \\ / _` | '__| | | | __/ _ \\ \n| | | | (_| | |  | |_| | || (_) |\n|_| |_|\\__,_|_|   \\__,_|\\__\\___/ .TIGERB.cn\n\t\t\t\nAn object-oriented multi process manager for PHP\n\nVersion: 0.5.0\n\n```\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"http://naruto.tigerb.cn/\"\u003e\u003cimg src=\"https://img.shields.io/badge/os-Linux%26Darwin-blue.svg\" alt=\"OS\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"http://naruto.tigerb.cn/\"\u003e\u003cimg width=\"30%\" src=\"http://blog-1251019962.cos.ap-beijing.myqcloud.com/qiniu_img_2022/wechat-blog-qrcode.jpg?imageMogr2/thumbnail/260x260!/format/webp/blur/1x0/quality/90|imageslim\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n# How to use?\n\n### Install\n\n```\ncomposer create-project tigerb/naruto naruto --prefer-dist \u0026\u0026 cd naruto\n```\n\n### Business code\n\n```php\n\nnew Manager([], function (Process $worker) {\n\t\t\t// mock business logic\n\t\t\t(new Test())-\u003ebusinessLogic();\n\t\t}\n\t);\n```\n\n### Run\n\n\u003e echo export NARUTO_PATH=$(pwd) \u003e\u003e ~/.profile \u0026\u0026 echo 'export PATH=\"$PATH:$NARUTO_PATH/bin\"' \u003e\u003e ~/.profile \u0026\u0026 source ~/.profile\n\n\u003e composer install\n\n```\nnaruto start/reload/quit/stop\n```\n\n### Manager process\n\n- start \\\u003cworker-num\\\u003e \\\u003cpasswd\\\u003e: start the naruto\n- reload: gracefully quit\u0026start the worker process\n- quit: gracefully exit\n- stop: forcefully exit\n\n# Specification\n\n- [中文](./docs/specification-zh.md)\n- English\n\n# TODO\n\n- [x] Implement a shell script to control the process\n- [x] Implement a daemon for worker by the master\n- [x] Optimize log\n- [x] Use a lightweight Orm [Metoo](https://github.com/catfan/Medoo)\n- [x] Implement max execute times for the worker process\n- [x] Add config file\n- [x] Remove a lightweight Orm [Metoo](https://github.com/catfan/Medoo) for keep lightweight @2019/03/23\n- [ ] Implement email send when the worker in a exception\u0026error\n- [ ] Add config reload strategy\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigerb%2Fnaruto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftigerb%2Fnaruto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigerb%2Fnaruto/lists"}