{"id":15025496,"url":"https://github.com/lazyskills/paa-thinkphp6","last_synced_at":"2025-04-09T20:03:50.381Z","repository":{"id":143941493,"uuid":"222626757","full_name":"LazySkills/PAA-ThinkPHP6","owner":"LazySkills","description":"🐘 ThinkPHP 6.0实现的一种简单实用的注释路由RESTful API架构","archived":false,"fork":false,"pushed_at":"2020-03-14T08:39:06.000Z","size":10546,"stargazers_count":44,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:03:40.827Z","etag":null,"topics":["annotation","composer","jwt","php71","thinkphp6"],"latest_commit_sha":null,"homepage":"https://github.com/LazySkills/PAA-ThinkPHP6","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LazySkills.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,"roadmap":null,"authors":null}},"created_at":"2019-11-19T06:40:36.000Z","updated_at":"2024-12-13T05:45:27.000Z","dependencies_parsed_at":"2024-01-13T18:31:21.708Z","dependency_job_id":"64c61b5f-3cd2-47a9-a540-8bba7606a386","html_url":"https://github.com/LazySkills/PAA-ThinkPHP6","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LazySkills%2FPAA-ThinkPHP6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LazySkills%2FPAA-ThinkPHP6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LazySkills%2FPAA-ThinkPHP6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LazySkills%2FPAA-ThinkPHP6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LazySkills","download_url":"https://codeload.github.com/LazySkills/PAA-ThinkPHP6/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103864,"owners_count":21048245,"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":["annotation","composer","jwt","php71","thinkphp6"],"created_at":"2024-09-24T20:02:27.980Z","updated_at":"2025-04-09T20:03:50.359Z","avatar_url":"https://github.com/LazySkills.png","language":"PHP","readme":"# PAA-ThinkPHP6\n🐘 A Simple and Practical Annotation Routing RESTful API architecture Implemented by ThinkHP 6.0\n\n## 简介\n\n`PAA-ThinkPHP6` 专注注解完成工作。\n\n目前内置功能：\n\n- `thinkphp6` 无缝衔接\n- 单个参数注解验证器，`app/annotation/Param.php`\n- 接口文档注解器，`app/annotation/Doc.php`\n- 接口JWT注解器，`app/annotation/JWT.php`\n- 接口管理平台\n\n## 线上文档（完善中...）\n\n文档：[LazySkills/PAA-ThinkPHP6](https://lazyskills.github.io/views/php/paa-thinkphp6/)\n\n\n## 安装源码\n\n`PAA-ThinkPHP6` 源码放于[github](https://github.com/LazySkills/PAA-thinkphp6)\n\n所以，需要使用`git`安装\n\n```bash\ngit clone https://github.com/LazySkills/PAA-thinkphp6.git\n```\n\n\u003e **以下步骤需要先进入项目目录**\n\n## 安装扩展\n\n`PAA-ThinkPHP6` 依赖于[composer](https://china-wangyu.github.io/views/php/composer/)\n\n所以，安装composer依赖扩展\n\n```bash\ncomposer install\n```\n\n嫌弃太慢，建议使用国内源\n\n```bash\ncomposer config repo.packagist composer https://mirrors.aliyun.com/composer/\n```\n\n\n## 运行\n\n- `ThinkPHP6`内置服务器\n\n    开发运行，可以使用`tinkphp6`内置服务器.\n    \n    命令：\n    \n    ```php\n    php think run\n    ```\n    \n    运行效果\n    \n    ```bash\n    \u003e php think run\n    \n    ThinkPHP Development server is started On \u003chttp://127.0.0.1:8000/\u003e\n    You can exit with `CTRL-C`\n    Document root is: PAA-thinkphp6\\public\n    ```\n    \n    运行成功，浏览器访问\n    \n    ```bash\n    http://127.0.0.1:8000/\n    ```\n- `docker`（推荐） \n    \n   开发生产运行，推荐使用 `docker`\n   \n   关于怎么安装使用，请自行百度，谢谢🙏\n   \n   运行方式：\n   \n   ```bash\n   docker run --name paa-tp6 -p 8000:9000 -v \"$PWD\":/app/paa-thinkphp6 chinawangyu/paa-thinkphp6\n   ```\n   \n   运行成功，浏览器访问\n       \n   ```bash\n   http://127.0.0.1:8000/\n   ```\n\n- `docker-composer`\n\n   采用`php7.4-fpm` + `nginx1.17`完成构建\n   \n   关于怎么安装使用，请自行百度，谢谢🙏\n    \n          \n   运行方式：\n  \n   ```bash\n   docker-compose up -d\n   ```\n  \n   运行成功，浏览器访问\n      \n   ```bash\n   http://127.0.0.1:8000/\n   ```\n      \n\n## 接口管理平台\n\n浏览器访问地址\n\n```bash\nhttp://127.0.0.1:8000/paa/index\n```\n\n### 账户\n\n\u003e 具体见 `config/paa.php` 配置文件中 `management.member`配置\n\n- 开发账户: `admin`\n- 密码: `supper`\n\n\u003e 开发具有操作权限，开发者可以看到并编辑隐藏的接口文档\n\n- 浏览者账户: `web`\n- 密码: `123456`\n\n\u003e 浏览者只有访问权限\n\n### 暂时演示地址：\n\n- 欢迎页 [点我，我超帅](http://paa.tp6.devilgod.cn)\n- 接口管理：[点我，我超美](http://paa.tp6.devilgod.cn/paa/index)\n    \n## 感谢\n\n`PAA-ThinkPHP6` 由以下项目组成和依赖。\n\n万分感谢，以下排名不分先后\n\n- [ThinkPHP v6](https://github.com/top-think/framework) 文档: https://www.kancloud.cn/manual/thinkphp6_0\n- [firebase/php-jwt](https://packagist.org/packages/firebase/php-jwt) php-jwt验证器\n- [LazySkills/think-annotation](https://github.com/LazySkills/think-annotation) 优秀注解扩展\n- [sentsin/layui](https://github.com/sentsin/layui) 优秀前端框架\n\n\u003e 再次感谢，希望大家能帮这几个项目点点`star`。\n\n## 维护与提问\n\n### 更新\n由于目前PAA目前还处在不断迭代更新阶段，ThinkPHP6版本也在持续跟进，所以本项目的内容也会随着适配的进度而增加或者调整。\n\n### 完善\n局限于个人技术水平和写作能力，如果文档中有哪些地方读者觉得不对或者看不懂需要再讲仔细些可以随时提出。\n\n### 催更、提问\n读者对本教程或者GitHub项目有任何疑问、建议都可以在作者GitHub仓库提个issues\n\n### 交流\n加【PAA 官方群】QQ群: 860613750\n\n### 请我喝茶\n如果你觉得本项目帮助到你，想请作者[喝杯茶](https://camo.githubusercontent.com/7c3599367e8cde0a4ea6d0cd97103794a4e18af1/68747470733a2f2f6368696e612d77616e6779752e6769746875622e696f2f2f5452522fe68993e8b58f2f616c697061792e6a7067) , 请扫码打赏任意金额\n\n## 下阶段开发计划\n[ ] 优化代码\n\n## 版权信息\nPAA-ThinkPHP6 遵循 MIT 开源协议发布，并提供免费使用。\n\n本项目包含的第三方源码和二进制文件之版权信息另行标注。\n\n版权所有Copyright © 2006-2019 by PAA-ThinkPHP6\n\nAll rights reserved。","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazyskills%2Fpaa-thinkphp6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazyskills%2Fpaa-thinkphp6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazyskills%2Fpaa-thinkphp6/lists"}