Download the PHP package workbunny/process without Composer

On this page you can find all versions of the php package workbunny/process. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package process

workbunny

workbunny/process

🐇 A lightweight multi-process helper base on PHP. 🐇

Build Status PHP Version Require GitHub license

简介

这是一个基于ext-pcntl和ext-posix拓展的PHP多进程助手,用于更方便的调用使用。

快速开始

方法

注:作用范围为父Runtime的方法仅在父Runtime内有有效响应

方法名 作用范围 是否产生分叉 描述
child() parentContext 分叉一个子Runtime / 替换一个子Runtime
run() parentContext 快速分叉N个子Runtime
wait() parentContext × 监听所有子Runtime状态
parent() parentContext × 为父Runtime增加回调响应
isChild() public × 判断是否是子Runtime
getId() public × 获取当前Runtime序号
getPid() public × 获取当前RuntimePID
getPidMap() parentContext × 获取所有子RuntimePID
number() parentContext × 获取Runtime数量 or 产生子Runtime自增序号
setConfig() public × 设置config
getConfig() public × 获取config
getPidMap() parentContext × 获取所有子RuntimePID
setPriority() public × 为当前Runtime设置优先级 需要当前执行用户为super user
getPriority() public × 获取当前Runtime优先级
exit() public × 进程退出

说明

1. 初始化

注:child()的priority参数会改变该默认值

注:priority需要当前用户为super user

2. fork行为

3. 指定执行

4. 回调函数相关

5. 其他

注:该方法仅父Runtime生效

注:该方法可结合指定执行区别获取

注:该方法仅父Runtime生效

注:该方法在会阻塞至所有子Runtime退出

注:该方法仅父Runtime生效

注:该方法应配合event-loop的timer或者future进行监听

注:该方法可结合指定执行区别获取


All versions of process with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 | ^8.0
ext-pcntl Version *
ext-posix Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package workbunny/process contains the following files

Loading the files please wait ....