{"id":18828569,"url":"https://github.com/itinysun/tp-model-helper","last_synced_at":"2026-01-23T04:30:18.112Z","repository":{"id":56994286,"uuid":"402710739","full_name":"Itinysun/tp-model-helper","owner":"Itinysun","description":"根据数据库的字段，以及模型的获取器和修改器等方法，自动生成模型的注释。以便于IDE可以获得类型提示。根据模型字段写入schema，以后发布项目无需更新字段缓存","archived":false,"fork":false,"pushed_at":"2021-11-03T13:23:31.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"1.0","last_synced_at":"2025-02-20T02:21:35.820Z","etag":null,"topics":["ide-helper","php","thinkphp","thinkphp6"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Itinysun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-03T09:09:13.000Z","updated_at":"2021-11-03T13:21:28.000Z","dependencies_parsed_at":"2022-08-21T13:20:33.575Z","dependency_job_id":null,"html_url":"https://github.com/Itinysun/tp-model-helper","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itinysun%2Ftp-model-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itinysun%2Ftp-model-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itinysun%2Ftp-model-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Itinysun%2Ftp-model-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Itinysun","download_url":"https://codeload.github.com/Itinysun/tp-model-helper/tar.gz/refs/heads/1.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763622,"owners_count":19692812,"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":["ide-helper","php","thinkphp","thinkphp6"],"created_at":"2024-11-08T01:31:28.029Z","updated_at":"2026-01-23T04:30:18.048Z","avatar_url":"https://github.com/Itinysun.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ThinkPHP6 模型注释和模型字段自动生成助手\n\n\n## 功能\n- 根据数据库的字段，以及模型的获取器和修改器等方法，自动生成模型的注释。以便于IDE可以获得类型提示。\n- 根据模型字段写入schema，以后发布项目无需更新字段缓存，查看https://www.kancloud.cn/manual/thinkphp6_0/1037581了解schema\n\n\n\n### 安装\n\n~~~\n\ncomposer require itinysun/tp-model-helper\n\n修改 配置文件\nconfig/console/model_help\n\n确保已经配置了数据库连接，并且可以连接到数据库\n~~~\n\n### 使用方法\n\n~~~\n//更新所有模型\nphp think model:help\n\n//更新指定模型\nphp think model:help app\\model\\User app\\model\\Post\n\n//清理所有模型\nphp think model:help -C\n\n//清理指定模型\nphp think model:help app\\model\\User  app\\model\\Post -C\n\n~~~\n\n#### 可选参数\n~~~\n\n--clean [-C] 清理模式，根据提示清理生成的注释和字段\n\n--overwrite [-O] 强制覆盖已有的属性注释\n~~~\n\n#### 感谢\n本项目修改自 yunwuxin/think-model-helper\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinysun%2Ftp-model-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitinysun%2Ftp-model-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitinysun%2Ftp-model-helper/lists"}