承接 pecl/parallel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pecl/parallel

最新稳定版本:v1.2.9

Composer 安装命令:

pie install pecl/parallel

包简介

A succinct parallel concurrency API for PHP 8

README 文档

README

Linux AddressSanitizer Windows Coverage Status

A succinct parallel concurrency API for PHP 8

GoFundMe

Documentation

Documentation can be found in the PHP manual: https://php.net/parallel

Requirements and Installation

See INSTALL.md

Hello World

<?php
$runtime = new \parallel\Runtime();

$future = $runtime->run(function(){
    for ($i = 0; $i < 500; $i++)
        echo "*";

    return "easy";
});

for ($i = 0; $i < 500; $i++) {
    echo ".";
}

printf("\nUsing \\parallel\\Runtime is %s\n", $future->value());

This may output something like (output abbreviated):

.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*
Using \parallel\Runtime is easy

Development

See CONTRIBUTING.md for guidelines on contribution and development (and debugging).

统计信息

  • 总下载量: 504
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1575
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1575
  • Watchers: 54
  • Forks: 94
  • 开发语言: C

其他信息

  • 授权协议: PHP-3.01
  • 更新时间: 2024-12-13