{"id":13597853,"url":"https://github.com/hyperf-admin/hyperf-admin","last_synced_at":"2026-03-17T21:37:28.640Z","repository":{"id":41268386,"uuid":"272730501","full_name":"hyperf-admin/hyperf-admin","owner":"hyperf-admin","description":"hyperf-admin 是基于 hyperf + vue 的配置化后台开发工具","archived":false,"fork":false,"pushed_at":"2023-04-18T05:33:48.000Z","size":1758,"stargazers_count":428,"open_issues_count":7,"forks_count":74,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-12-14T07:42:23.728Z","etag":null,"topics":["admin","hyperf","hyperf-admin","swoole","vue","vue-admin"],"latest_commit_sha":null,"homepage":"https://hyperf-admin.github.io/hyperf-admin/#/","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-admin.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-06-16T14:30:24.000Z","updated_at":"2025-12-02T02:34:49.000Z","dependencies_parsed_at":"2024-01-29T06:35:16.874Z","dependency_job_id":"44801d00-9e5b-434e-8b93-cb94a65a07e5","html_url":"https://github.com/hyperf-admin/hyperf-admin","commit_stats":{"total_commits":109,"total_committers":18,"mean_commits":6.055555555555555,"dds":0.4311926605504587,"last_synced_commit":"f876de0fc4afab89c7d42959f9c1c7ebb3af6d98"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/hyperf-admin/hyperf-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-admin%2Fhyperf-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-admin%2Fhyperf-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-admin%2Fhyperf-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-admin%2Fhyperf-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf-admin","download_url":"https://codeload.github.com/hyperf-admin/hyperf-admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf-admin%2Fhyperf-admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30632085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["admin","hyperf","hyperf-admin","swoole","vue","vue-admin"],"created_at":"2024-08-01T17:00:42.353Z","updated_at":"2026-03-17T21:37:28.610Z","avatar_url":"https://github.com/hyperf-admin.png","language":"PHP","readme":"`HyperfAdmin`是前后端分离的后台管理系统, 前端基于`vue`的 `vue-admin-template`, 针对后台业务`列表`, `表单`等场景封装了大量业务组件, 后端基于`hyperf`实现, 整体思路是后端定义页面渲染规则, 前端页面渲染时首先拉取配置, 然后组件根据具体配置完成页面渲染, 方便开发者仅做少量的配置工作就能完成常见的`CRUD`工作, 同时支持自定义组件和自定义页面, 以开发更为复杂的页面.\n\n[详细文档](https://hyperf-admin.github.io/hyperf-admin/)\n\n[演示站点](http://hyperf-admin.daodao.run/) `用户名`: daodao, `密码`: a1a1a1\n\n\u003e 演示站点部署在`亚马逊免费主机`, 国内访问可能会慢\n\n![HyperfAdmin架构](https://gitee.com/daodao97/asset/raw/master/uPic/sJaJti.png)\n\n前端为`vue multiple page`多页模式, 可以按模块打包, 默认包含两个模块`default` 默认模块,  `system`系统管理模块,  绝大部分业务组件在`src/components`目录\n\n后端为`composer包`模式, 目前包含组件\n\n-   基础组件\n    -   `composer require hyperf-admin/base-utils` hyperf-admin的基础组件包, 脚手架主要功能封装\n    -   `composer require hyperf-admin/validation` 参数验证包, 对规则和参数提示做了较多优化\n    -   `composer require hyperf-admin/alert-manager` 企微/钉钉机器人报警包\n    -   `composer require hyperf-admin/rule-engine` 规则引擎\n    -   `composer require hyperf-admin/event-bus` mq/nsq/kafka消息派发器\n    -   `composer require hyperf-admin/process-manager` 进程管理组件\n-   业务组件 (业务组件为包含特定业务功能的包)\n    -   `composer require hyperf-admin/admin` 系统管理业务包\n    -   `composer require hyperf-admin/dev-tools` 开发者工具包, 主要是代码生成, 辅助开发\n    -   `composer require hyperf-admin/cron-center` 定时任务管理, 后台化管理任务\n    -   `composer require hyperf-admin/data-focus` 数据面板模块, 帮你快速制作数据大盘\n\n## 前端的安装\n\n```shell\n# 环境依赖\n# 1.  node ^v11.2.0 https://nodejs.org/zh-cn/download/\n# 2.  npm ^6.4.1\ngit clone https://github.com/hyperf-admin/hyperf-admin-frontend.git\ncd hyperf-admin-frontend\nnpm i\nnpm run dev\n```\n\n请根据实际情况修改`vue.config.js`中的代理 `proxy.target`地址\n\n```shell\n# 打包\nnpm run build:prod\nnpm run build:test\n```\n\n## 后端的安装\n\n#### 1. 初始化一个`hypef`项目\n```shell\n# 环境依赖 php ^7.2 composer swoole \ncomposer create-project hyperf/hyperf-skeleton hyperf-admin\ncd hyperf-admin\n``` \n\n#### 2. 移除`hyperf-skeleton`中的日志配置, 因为 `admin` 底层已配置\n```shell\nrm config/autoload/logger.php\n```\n\n#### 3. 安装`hyperf-admin`的依赖DB信息\n\nhyperf-admin 为分包的模式, 此处引入的是完整仓库, 实际项目请按需引入\n\n全部的`mysql` 表结构及及基础数据详见 [demo/db](https://github.com/hyperf-admin/hyperf-admin-demo/tree/master/docker/db)\n\n#### 4. 修改项目`.env`\n```shell\nAPP_NAME=hyperf-admin\nENV=dev\n\n# Redis链接信息\nREDIS_HOST=localhost\nREDIS_AUTH=(null)\nREDIS_PORT=6379\nREDIS_DB=0\n\n# hyperf-admin 依赖的核心db\nHYPERF_ADMIN_DB_HOST=localhost\nHYPERF_ADMIN_DB_PORT=3306\nHYPERF_ADMIN_DB_NAME=hyperf_admin\nHYPERF_ADMIN_DB_USER=root\nHYPERF_ADMIN_DB_PWD=root\n\nLOCAL_DB_HOST=localhost\n```\n\n#### 5. 安装`hyperf-admin`扩展包\n```shell \ncomposer require hyperf-admin/hyperf-admin\n```\nhyperf-admin 为分包模式, 实际应用中请根据情况安装\n\n#### 6. 初始化`validation`的依赖文档\n```shell\nphp bin/hyperf.php vendor:publish hyperf/translation\nphp bin/hyperf.php vendor:publish hyperf/validation\n```\n\n#### 7. 设置用户密码的加密`key`, 配置节点`password.salt`\n```shell\n// config/config.php\n\n'password' =\u003e [\n    'salt' =\u003e env('HYPERF_ADMIN_PWD_SALT', 'c093d70f088499c3a837cae00c042f14'), // 用 md5(time()) 获取 salt\n```\n\n#### 8. 启动\n```shell\n# 启动 热重启参考 https://github.com/daodao97/hyperf-watch\ncomposer watch\n```\n\n## nginx配置\n\n```nginx\nupstream backend {\n    server 127.0.0.1:9511;\n}\n\nserver {\n    listen 80;\n    server_name hyperf-admin.com; # 设置自己的 domain\n    index index.html;\n    root /opt/www/hyperf-admin-front/dist;\n    access_log /usr/local/var/log/nginx/hyperf-admin.access.log;\n    error_log /usr/local/var/log/nginx/hyperf-admin.error.log;\n\n    location ~ /api/(.*) {\n        proxy_http_version 1.1;\n        proxy_set_header Connection \"keep-alive\";\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header Host hyperf-admin.com;\n        proxy_pass http://backend/$1$is_args$args;\n    }\n\n    location / {\n        root /opt/www/hyperf-admin-front/dist/default;\n        index index.html;\n    }\n\n    location ~ /(.*) {\n        set $module $1;\n        if ($module ~* '^$') {\n            set $module default;\n        }\n        try_files $uri $uri/ /$module/index.html;\n    }\n}\n```\n\n浏览器打开 [http://youdomain.com:8081/default/#/dashboard](http://youdomain.com:8081/default/#/dashboard) 即可访问\n\n默认账号 `daodao`, 密码 `a1a1a1`\n","funding_links":[],"categories":["Web Applications","PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf-admin%2Fhyperf-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf-admin%2Fhyperf-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf-admin%2Fhyperf-admin/lists"}