swow/swow
Composer 安装命令:
composer require swow/swow
包简介
Coroutine-based multi-platform support engine with a focus on concurrent I/O
README 文档
README

🚀 Swow is a multi-platform support and coroutine-based engine with a focus on concurrent I/O
👾 Design Philosophy
Swow is committed to using the smallest C core and most of the PHP code to support PHP high-performance network programming, which determines that it is more about providing powerful secondary development capabilities by seamlessly integrating PHP code and C kernel, while ensuring critical performance.
In addition, it provides a variety of debugging mechanisms and powerful and low-threshold debugging tools, which can ensure that developers are free from the trouble of BUGs as much as possible, and ordinary developers can also have the ability to debug near the level of experts with the help of tools, so as to maximize development efficiency.
🎮 Installation
Like any open source project, Swow always provides the strongest stability and features in the newest release, please try to ensure that you are using the latest version.
🔎 Requirements
- Common operating systems such as Linux, Windows, macOS, etc. Almost same as libuv
- PHP 8.0.0 or above, the latest version is recommended
🥧 Using PIE
Get PIE first.
pie install swow/swow-extension
for develop version (may contain bugfix):
pie install swow/swow-extension:dev-develop
👨🎤 By Composer
pull source code:
composer require swow/swow
Then run the automatic installer swow-builder under the vendor/bin directory to start the installation:
./vendor/bin/swow-builder --install
After you update the source code of Swow, you should use the rebuild option to recompile Swow and then install it:
./vendor/bin/swow-builder --rebuild --install
More information about swow-builder can be found in Extension installation document - By Composer.
🐧 Manual installation (UNIX-like)
clone the Swow (You can also import it through Composer, and then cd to vendor/swow/swow/ext and install manually):
git clone https://github.com/swow/swow.git
Well-known building procedure. Install to the system with root privileges:
cd swow/ext && \ phpize && ./configure && make && \ sudo make install
Ⓜ️ Manual installation (Windows)
See Installation document - Manual compilation installation (Windows).
You can also download DLL directly in Latest Release.
🔰️ Security issues
Security issues should be reported privately, via email, to twosee@php.net. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
🖊️ Contribution
Your contribution to Swow development is very welcome!
You may contribute in the following ways:
- Report issues and feedback
- Submit fixes, features via Pull Request
- Write/polish documentation via GitHub
❤️ Contributors
PHP high-performance coroutine network communication engine development road is too high to be popular, It's a lonely open source work at the top.
Thank you very much to the following partners for the contribution of the Swow project, without you there is no Swow now.
💬 Development & Discussion
- Wiki:https://docs.toast.run/swow/en
- Blog (CHS) https://docs.toast.run/swow-blog/chs
- Features (CHS) https://docs.toast.run/swow-blog/chs/init.html
- API Reference:https://docs.toast.run/swow-api/ci.html
- Discussions:https://github.com/swow/swow/discussions
- TODO:https://github.com/swow/swow/projects
📃 License
Swow is available under the Apache License Version 2.0. Swow also includes external libraries that are available under a variety of licenses. See LICENSES.full for the full license text.
swow/swow 适用场景与选型建议
swow/swow 是一款 基于 C 开发的 Composer 扩展包,目前已累计 2.2M 次下载、GitHub Stars 达 1.33k, 最近一次更新时间为 2020 年 08 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「http」 「websocket」 「event」 「client」 「server」 「async」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 swow/swow 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 swow/swow 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 swow/swow 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Symfony bundle for broadway/broadway.
This is an Event Emitter equivalent to Node.js' Event Emitter.
Publish / Subscribe / Event Manager
http客户端
WebSocket view engine
统计信息
- 总下载量: 2.2M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1329
- 点击次数: 34
- 依赖项目数: 118
- 推荐数: 233
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-08-15