多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Swoole [TOC] > `Github`项目地址:[https://github.com/swoole/swoole-src/](https://github.com/swoole/swoole-src/)(支持请点Star) PHP的[协程](Coroutine.md)高性能网络通信引擎,使用`C/C++`语言编写,提供了多种通信协议的网络服务器和客户端模块。包括: * [TCP/UDP/UnixSocket服务器](Server.md) * [Http/WebSocket/Http2.0服务器端](HttpServer.md) * [异步/同步TCP/UDP网络客户端](Client.md) * [异步MySQL](异步MySQL客户端.md) * [异步Redis](异步Redis客户端.md) * [AsyncTask](Server-task.md) * [毫秒定时器](Timer.md) * [异步文件读写](异步文件系统IO.md) * [异步DNS查询](swoole\_async\_dns\_lookup.md) * [Http客户端](异步Http-WebSocket客户端.md) `Swoole4`支持完整的**[协程](Coroutine.md)编程模式**,可以使用完全同步的代码实现异步程序。`PHP`代码无需额外增加任何关键词,底层自动进行协程调度,实现异步`IO`。 > `Swoole4`协程仅支持`PHP7`,无法在`PHP5`中使用 除了[异步IO](异步回调.md)的支持之外,`Swoole`为`PHP`多进程的模式设计了多个并发数据结构和IPC通信机制,可以大大简化多进程并发编程的工作。其中包括了: * [并发原子计数器](Atomic.md) * [并发HashTable](Table.md) * [内存通道Channel](Channel.md) * [锁Lock](Lock.md) * [进程间通信IPC](Server-sendMessage.md) `Swoole`可以广泛应用于互联网、移动通信、企业软件、网络游戏、物联网、车联网、智能家庭等领域。 使用`PHP`+`Swoole`作为网络通信框架,可以使企业`IT`研发团队的效率大大提升,更加专注于开发创新产品。 `Swoole`是开源免费的自由软件,授权协议是`Apache2.0`,企业和个人开发者均可免费使用,并且在`Swoole`之上所作的修改可用于商业产品,无需开源(注:必须保留原作者的版权声明)。 ## 开发工具 * Swoole 4.X 速查表[https://toxmc.github.io/swoole-cs.github.io/](https://toxmc.github.io/swoole-cs.github.io/) * IDE自动提示工具(自动生成版) :[https://github.com/swoole/ide-helper](https://github.com/swoole/ide-helper) * 国内Git镜像:[https://gitee.com/swoole/swoole](https://gitee.com/swoole/swoole) * 全量markdown文档:[https://github.com/swoole/swoole-wiki](https://github.com/swoole/swoole-wiki) * 新手入门教程:[https://www.gitbook.com/book/linkeddestiny/easy-swoole/details](https://www.gitbook.com/book/linkeddestiny/easy-swoole/details) * IDE自动提示工具(手动版) swoole-ide-helper:[https://github.com/eaglewu/swoole-ide-helper](https://github.com/eaglewu/swoole-ide-helper) * Swoole-Docset:[https://github.com/halfstring/swoole-chinese-docset](https://github.com/halfstring/swoole-chinese-docset) ## 交流讨论 * Swoole官方QQ群: 810919826 * Swoole-VIP群: 626330624,[终生会员:599 RMB,点击购买](http://phpapp.swoole-cloud.com/app/show?id=EOijt7),请在订单备注中填写您的`QQ`号码 ## 社区资源 * **[Github issue区](https://github.com/swoole/swoole-src/issues)(请按照模板提问, 最快解决渠道)** * **[SegmentFault网站Swoole专区](https://segmentfault.com/t/swoole/questions)(推荐使用)** * [开发者头条Swoole频道](https://toutiao.io/s/swoole) * [OSC社区Swoole问答板块](http://www.oschina.net/question/tag/swoole-server) * [知乎-Swoole专区](https://www.zhihu.com/topic/20051981/hot) * [Swoole知乎专栏](https://zhuanlan.zhihu.com/swoole) ## 捐赠Swoole开源项目 您的捐赠是对Swoole项目开发组最大的鼓励和支持。我们会坚持开发维护下去。 您的捐赠将被用于: * 持续和深入的开发 * 文档和社区的建设和维护 > > > [点击捐赠 Swoole 开源项目](https://gitee.com/swoole/swoole?donate=true) #### 感谢[51talk](http://www.51talk.com/)捐赠 10000元 [![](https://static.51talk.com/static/images/html/www_new/common/log.png?v=2017-12-21)](http://www.51talk.com/) #### 感谢[codecasts.com](https://codecasts.com/)捐赠 8000元 [![](https://user-images.githubusercontent.com/6011686/28741127-791014ae-7442-11e7-929e-114e5047d9e5.png)](https://codecasts.com/) #### 感谢[六星教育](https://www.sixstaredu.com/)捐赠 4000元 [![六星教育](https://www.swoole.com/static/uploads/wiki/201812/03/197630887599.jpg "六星教育")](https://www.sixstaredu.com/ "六星教育") #### 感谢[EasySwoole](http://www.easyswoole.com/)捐赠 3000元 [![EasySwoole](https://www.easyswoole.com/img/easyswoole.png "EasySwoole")](https://www.easyswoole.com/ "EasySwoole") #### 感谢[易软天创](http://www.cnezsoft.com/)捐赠 3000元