{"id":18942452,"url":"https://github.com/pinguo/php-msf-docs","last_synced_at":"2025-10-11T17:08:31.036Z","repository":{"id":192948360,"uuid":"102098535","full_name":"pinguo/php-msf-docs","owner":"pinguo","description":"PHP微服务框架开发手册，即Micro Service Framework For PHP Develop Manual","archived":false,"fork":false,"pushed_at":"2018-07-22T07:06:45.000Z","size":2266,"stargazers_count":192,"open_issues_count":1,"forks_count":54,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-08-21T08:47:59.843Z","etag":null,"topics":["php","php-framework","php-msf","swoole","swoole-framework"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinguo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-09-01T09:44:36.000Z","updated_at":"2025-05-25T08:07:12.000Z","dependencies_parsed_at":"2023-09-06T03:57:51.412Z","dependency_job_id":null,"html_url":"https://github.com/pinguo/php-msf-docs","commit_stats":null,"previous_names":["pinguo/php-msf-docs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pinguo/php-msf-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguo%2Fphp-msf-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguo%2Fphp-msf-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguo%2Fphp-msf-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguo%2Fphp-msf-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinguo","download_url":"https://codeload.github.com/pinguo/php-msf-docs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinguo%2Fphp-msf-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008110,"owners_count":26084396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","php-framework","php-msf","swoole","swoole-framework"],"created_at":"2024-11-08T12:32:54.945Z","updated_at":"2025-10-11T17:08:30.997Z","avatar_url":"https://github.com/pinguo.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP-MSF开发手册\n\nPHP微服务框架开发手册，即Micro Service Framework For PHP Develop Manual，PHP微服务框架即[“Micro Service Framework For PHP”](https://github.com/pinguo/php-msf)，是Camera360社区服务器端团队基于Swoole自主研发的现代化的PHP服务框架，简称msf或者php-msf，它的核心设计思想是采用协程、异步、并行的创新技术手段提高系统的单机吞吐能力，降低整体服务器成本。\n\n本手册从介绍异步、并行、协程等基础概念出发，再到[PHP-MSF](https://github.com/pinguo/php-msf)框架如何使用，其中也介绍了部分内部实现的原理，简单易上手。通过学习本手册，再结合我们的demo示例项目，就能够使用[PHP-MSF](https://github.com/pinguo/php-msf)构建大规模高性能的微服务化分布式系统。\n\n```bash\n      _______                               ____\n________  / /_  ____        ____ ___  _____/ __/\n___/ __ \\/ __ \\/ __ \\______/ __ `__ \\/ ___/ /_\n__/ /_/ / / / / /_/ /_____/ / / / / (__  ) __/\n_/ .___/_/ /_/ .___/     /_/ /_/ /_/____/_/\n/_/         /_/         Camera360 Open Source TM\n```\n\n# 交流与反馈\n\nPHP-MSF#1群(QQ): 614054288\n\n\u003cimg src=\"./images/QR.JPG\" title=\"扫二维码加群\" width=\"40%\" /\u003e\n\n# 目录\n\n* [1 为什么要研发新的PHP框架](chapter-1/1.0-为什么要研发新的PHP框架.md)\n\t* [1.1 传统php-fpm工作模式的问题](chapter-1/1.1-传统php-fpm工作模式的问题.md)\n\t* [1.2 压测数据对比](chapter-1/1.2-压测数据对比.md)\n\t* [1.3 小结](chapter-1/1.3-小结.md)\n* [2 微服务框架研发概览](chapter-2/2.0-微服务框架研发概览.md)\n\t* [2.1 通信框架技术选型](chapter-2/2.1-通信框架技术选型.md)\n\t* [2.2 swoole](chapter-2/2.2-swoole.md)\n\t* [2.3 协程原理](chapter-2/2.3-协程原理.md)\n\t* [2.4 异步、并发](chapter-2/2.4-异步、并发.md)\n\t* [2.5 小结](chapter-2/2.5-小结.md)\n* [3 框架运行环境](chapter-3/3.0-框架运行环境.md)\n\t* [3.1 环境变量](chapter-3/3.1-环境变量.md)\n\t* [3.2 运行代码](chapter-3/3.2-运行代码.md)\n\t* [3.3 docker](chapter-3/3.3-docker.md)\n\t* [3.4 小结](chapter-3/3.4-小结.md)\n* [4 框架结构](chapter-4/4.0-框架结构.md)\n\t* [4.1 结构概述](chapter-4/4.1-结构概述.md)\n\t* [4.2 控制器](chapter-4/4.2-控制器.md)\n\t* [4.3 模型](chapter-4/4.3-模型.md)\n\t* [4.4 视图](chapter-4/4.4-视图.md)\n\t* [4.5 同步任务](chapter-4/4.5-同步任务.md)\n\t* [4.6 配置](chapter-4/4.6-配置.md)\n\t* [4.7 路由](chapter-4/4.7-路由.md)\n\t* [4.8 小结](chapter-4/4.8-小结.md)\n* [5 框架组件](chapter-5/5.0-框架组件.md)\n\t* [5.1 协程](chapter-5/5.1-协程.md)\n\t* [5.2 类的加载](chapter-5/5.2-类的加载.md)\n\t* [5.3 异步HttpClient](chapter-5/5.3-异步HttpClient.md)\n\t* [5.4 请求上下文](chapter-5/5.4-请求上下文.md)\n\t* [5.5 连接池](chapter-5/5.5-连接池.md)\n\t* [5.6 对象池](chapter-5/5.6-对象池.md)\n\t* [5.7 RPC](chapter-5/5.7-RPC.md)\n\t* [5.8 公共库](chapter-5/5.8-公共库.md)\n\t* [5.9 RESTful](chapter-5/5.9-RESTful.md)\n\t* [5.10 多语言](chapter-5/5.10-多语言.md)\n\t* [5.11 杂项](chapter-5/5.11-杂项.md)\n\t* [5.12 小结](chapter-5/5.12-小结.md)\n* [6 常见问题](chapter-6/6.0-常见问题.md)\n* [7 附录](chapter-7/7.0-附录.md)\n\n# links\n  * 下一节: [为什么要研发新的PHP框架](chapter-1/1.0-为什么要研发新的PHP框架.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinguo%2Fphp-msf-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinguo%2Fphp-msf-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinguo%2Fphp-msf-docs/lists"}