krakjoe/pthreads-polyfill
Composer 安装命令:
composer require krakjoe/pthreads-polyfill
包简介
A polyfill for pthreads
README 文档
README
pthreads-polyfill aims to satisfy the API requirements of pthreads, such that code written to depend on pthreads will work when pthreads is not, or can not be loaded.
pthreads-polyfill does not implement the same execution model, for obvious reasons, and has no external dependencies.
pthreads-polyfill will fill for v2 or v3, however behaviour is consistent with v3, which is the version new projects should target.
Testing
pthreads-polyfill is distributed with some unit tests, these tests should pass with and without pthreads loaded.
Testing pthreads-polyfill
phpunit tests
If pthreads is loaded by your configuration the polyfill will not be used.
Testing code coverage for pthreads-polyfill
phpdbg -nqrr vendor/bin/phpunit tests --coverage-text
krakjoe/pthreads-polyfill 适用场景与选型建议
krakjoe/pthreads-polyfill 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 135.54k 次下载、GitHub Stars 达 78, 最近一次更新时间为 2015 年 09 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「pthreads」 「polyfill」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 krakjoe/pthreads-polyfill 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 krakjoe/pthreads-polyfill 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 krakjoe/pthreads-polyfill 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Serialize Volatile, Threaded or any other internal PHP class!
Compatibility layer for emulating enumerations in PHP < 8.1 and native enumerations in PHP >= 8.1
PHP polyfill for the Apache Functions. The aim is to provides functions as the PHP way in order to get them available even if PHP is not running as an Apache module.
It introduces abstract services and objects that provides easy handling for thread-safety, concurrency and sharing.
Provide pthreads PHP extension stub
Polyfill for mb_ereg(), mb_eregi(), mb_ereg_match(), and mb_ereg_replace*() functions; primary use case is for mbstring on Windows 7.4+
统计信息
- 总下载量: 135.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 80
- 点击次数: 6
- 依赖项目数: 5
- 推荐数: 2
其他信息
- 授权协议: PHP
- 更新时间: 2015-09-14