{"id":23150852,"url":"https://github.com/hyperf-plus/devtool","last_synced_at":"2025-07-12T06:33:47.601Z","repository":{"id":42195506,"uuid":"297242133","full_name":"hyperf-plus/devtool","owner":"hyperf-plus","description":"hyperf 开发工具","archived":false,"fork":false,"pushed_at":"2022-10-27T02:07:08.000Z","size":29,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T23:48:59.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hyperf-plus.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":"2020-09-21T05:55:24.000Z","updated_at":"2023-10-04T08:09:57.000Z","dependencies_parsed_at":"2022-08-12T09:10:25.685Z","dependency_job_id":null,"html_url":"https://github.com/hyperf-plus/devtool","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hyperf-plus/devtool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fdevtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fdevtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fdevtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fdevtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf-plus","download_url":"https://codeload.github.com/hyperf-plus/devtool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-plus%2Fdevtool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951610,"owners_count":23687974,"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":[],"created_at":"2024-12-17T18:18:43.220Z","updated_at":"2025-07-12T06:33:47.587Z","avatar_url":"https://github.com/hyperf-plus.png","language":"PHP","readme":"# devtool\n## hyperf 开发工具  gen:admin \n\n# 安装 \n```php  \ncomposer require hyperf-plus/devtool --dev\n```\n\n### 建好表后，需要先执行```php bin/hyperf.php gen:model```表名 创建模型，\n### 然后执行  ``` php bin/hyperf.php gen:admin ``` 模型名 \n```php\n  -d （可选）控制器的简介 \n  -N （可选）命名空间 默认 \\App\\Controller\\Admin\n  -f （可选）如果文件存在则会强制覆盖\n```\n\n## 例如 ：\n### 数据库表为  users\n### 执行 ``` php bin/hyperf.php gen:model users ``` 模型生成在 App\\model\\User\n### 执行 ``` php bin/hyperf.php gen:admin User -d 用户管理 ```\n### 即可生成 User.php控制器文件、grid、form会把所有字段都列出来，自行根据需求进行修改\n#### 目前只有简单的生成表单和表格的功能，后续会增加可视化界面，支持更多可选配置操作。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf-plus%2Fdevtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf-plus%2Fdevtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf-plus%2Fdevtool/lists"}