定制 barracudanetworks/forkdaemon-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

barracudanetworks/forkdaemon-php

最新稳定版本:v2.0.1

Composer 安装命令:

composer require barracudanetworks/forkdaemon-php

包简介

A library to make setup and management of forking daemons in PHP easy.

README 文档

README

A library to make setup and management of forking daemons in PHP easy.

Features

  • Easy management of PHP forks
  • Return result of children by callback or polling parent for results
  • Splitting work units into buckets
  • Preforking callbacks to manage resources before forking
  • Dynamic setting of number of children / work per child

Usage

Check out the examples in the examples directory php example/blocking.php

Caveats

  • You need to specify declare(ticks=1); before inclusion of the fork-daemon library, otherwise signals wont be handled. This must be done in the main PHP file, as declare(ticks=N); only works for the file in which it is declared and the files which that file includes. Reference: PHP Documentation

License

Copyright 2013 Barracuda Networks, Inc. Licensed under the MIT License

统计信息

  • 总下载量: 63.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 38
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 38
  • Watchers: 9
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-24