Forker:一种在 PHP 中并行执行任务的结构化、安全且最简单的方法

时间:2021-07-14 20:49:58
【文件属性】:
文件名称:Forker:一种在 PHP 中并行执行任务的结构化、安全且最简单的方法
文件大小:22KB
文件格式:ZIP
更新时间:2021-07-14 20:49:58
PHP 叉子 概要 一种在 PHP 中并行执行任务的结构化、安全且最简单的方法。 代码示例 <?php /************************************************** * Example: Retrieving the city-weather using external api * Usage : php examples/demo.api.weather.php * Storage: File **************************************************/ require 'vendor/autoload.php' ; use Forker \ Forker ; use Forker \ Storage \ FileStorage ; $ allCitiesWeather = "" ; $ urlA
【文件预览】:
Forker-master
----.gitignore(1KB)
----src()
--------Forker()
----LICENSE.md(1KB)
----.travis.yml(184B)
----composer.json(657B)
----examples()
--------MapReduce()
--------demo.api.weather.php(2KB)
--------demo.timeout.php(1KB)
--------demo.sum.php(1KB)
--------demo.api.weather.file-storage.php(2KB)
----README.md(4KB)
----phpunit.xml(256B)
----tests()
--------bootstrap.php(87B)
--------unit()

网友评论