{"id":21018700,"url":"https://github.com/tal-tech/fend","last_synced_at":"2025-04-12T20:45:09.544Z","repository":{"id":56474135,"uuid":"281335728","full_name":"tal-tech/fend","owner":"tal-tech","description":"Fend 是一款短小精悍，可在 FPM/Swoole 服务容器平滑切换的高性能PHP框架","archived":false,"fork":false,"pushed_at":"2020-11-05T09:48:22.000Z","size":285,"stargazers_count":564,"open_issues_count":0,"forks_count":67,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-14T12:54:25.115Z","etag":null,"topics":["php","php-fpm","swoole"],"latest_commit_sha":null,"homepage":"https://tal-tech.github.io/fend-doc/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tal-tech.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}},"created_at":"2020-07-21T08:06:56.000Z","updated_at":"2024-04-10T09:57:44.000Z","dependencies_parsed_at":"2022-08-15T19:30:36.271Z","dependency_job_id":null,"html_url":"https://github.com/tal-tech/fend","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ffend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ffend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ffend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ffend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tal-tech","download_url":"https://codeload.github.com/tal-tech/fend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631688,"owners_count":21136556,"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","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-fpm","swoole"],"created_at":"2024-11-19T10:27:09.856Z","updated_at":"2025-04-12T20:45:09.522Z","avatar_url":"https://github.com/tal-tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e \n \u003ca href=\"https://tal-tech.github.io/fend-doc/\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://static0.xesimg.com/tal-tech-pic/fend/assets/fend.png?raw=true\"  alt=\"Fend Logo\" align=center /\u003e\n \u003c/a\u003e \n\u003c/p\u003e\n\nPHP是一款简单方便的语言，而行业开源框架为了`后续灵活` 而变得过于繁重\n\nFend框架是一款很有历史的框架、初代发布后一直在好未来坊间传播使用、衍生出大量分支版本 \n\n这是一款很有意思的框架、普通的框架内隐藏着大型互联网经验的精华、也同时存在大量历史痕迹\n\n2019年7月 我们对Fend进行整理、封装、推广、目前在好未来内部有大量的用户在使用、维护 \n\n2020年7月 开源、以此共建交流 \n\n我们崇尚 `脚踏实地、仰望星空` 精神 欢迎小伙伴一起参与开源共建\n\n\u003chr /\u003e \n \n## Fend框架文档    \n[Document](https://tal-tech.github.io/fend-doc/) \n\n[中文文档](https://www.yuque.com/tal-tech/fend/readme) \n \n## 设计方向\n\nFend 框架是一款以企业快速实现业务为主要目标的框架，但与复杂的行业流行框架追求不同： \n * `简单实用`：追求快速上手，扩展功能一步到位、大量降低功能的复杂度、框架更注重简单实用实现\n * `单层内核`：追求一个函数能实现的功能绝不继承封装，不追求框架自身功能的继承可复用 \n * `内聚归类`：高度集中归类功能，降低底层复杂度，减少底层组件关注度、更多时间在业务\n * `持续积累`：持续积累大型互联网线上运营经验，持续探索企业实用技巧，深度来自于积累而非AOP带来的灵活性\n * `内核设计`：高内聚简单内核，放开业务自封装空间，留下更多空间给业务\n * `开源心态`：开放公开，接受任何符合价值观源码奉献、但有严格代码审核\n \n## 功能简介\n * Swoole/FPM 双引擎平滑切换(协程版本还在整理稍晚放出)\n * 统一使用 Composer Autoload PSR4\n * 请求Debug 模式，请求网址wxdebug=1可查看debug模式查看异常分析性能\n * 协程模式下对变量域做了更好的封装，降低协程使用难度\n * 支持压测使用灰度影子库\n * 高速map映射路由 + FastRouter正则路由\n * 符合大数据挖掘设计的Trace日志，方便ELK分析、ClickHouse、HBase、实时预警\n * throw new Exception方式处理业务异常、能够快速发现异常\n \n\u003chr /\u003e \n\n## Release Note\n * Tag 1.2.x FPM/Swoole 1.10.x support FPM \\\u003c-\\\u003e Swoole 1.10.x\n * Tag 1.3.x FPM/Swoole 4.5.x support FPM \\\u003c-\\\u003e Swoole Coroutine 4.5.x\n \n\u003chr /\u003e \n\n## Install for 1.2.x branch\n \n#### FPM Engine Start\nmaster is 1.2.x version \n\n```bash\ncomposer create-project fend/fend-skeleton:~1.2.0 project_name\n```\n\nRef [nginx.conf](nginx.conf) to configure Nginx and http://127.0.0.1/ on browser \n \n \n#### Swoole Engine Start\n\n```bash\ncomposer create-project fend/fend-skeleton:~1.2.0 project_name\n\n# swoole start ( /bin/fend depend on composer require symfony/console )\nphp /bin/fend Swoole -c app/Config/Swoole.php start\nphp /bin/start.php -c app/Config/Swoole.php start\n```\n\nbrowser http://127.0.0.1:9572/ \n \n## 1.3.0 version install\n```bash\ncomposer create-project fend/fend-skeleton:~1.3.0 project_name\n```\n \n\u003chr /\u003e \n\n## Contributors\n\n|姓名|事业部|部门|\n|:---| :--- |:---|\n|刘帅 (@lsfree) |网校|平台研发部|\n|韩天峰 (@matyhtf) |网校|架构研发部|\n|徐长龙 (@蓝天)|网校|架构研发部|\n|陈曹奇昊 (@twose)|网校|架构研发部|\n|谢华亮 (@黑夜路人)|开放平台|智慧教育|\n|陈雷 (@godblessmychildren)|网校|互联网研发部|\n\n(其他贡献者、请详见文档鸣谢)\n \n\u003chr /\u003e \n\n## Contact us\nissue: [https://github.com/tal-tech/fend/issues](https://github.com/tal-tech/fend/issues) \n\n加群请加微信： \n\n![](http://static0.xesimg.com/tal-tech-pic/fend/assets/contactus.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftal-tech%2Ffend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftal-tech%2Ffend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftal-tech%2Ffend/lists"}