# Webman Admin **Repository Path**: dingduan/webman-admin ## Basic Information - **Project Name**: Webman Admin - **Description**: 基于 Webman 框架开发的后台管理系统。前端包含Layui、Vue2+Element、Vue3+Arco-Design等版本。 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 11 - **Created**: 2024-03-15 - **Last Updated**: 2024-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Webman Admin ## 简介 Webman Admin 是一个用 Webman 框架开发的后台管理系统。前端包含Layui、Vue2+Element、Vue3+Arco-Design等版本。 [![star](https://gitee.com/hchen2017/webman-admin/badge/star.svg?theme=dark)](https://gitee.com/hchen2017/webman-admin/stargazers) [![fork](https://gitee.com/hchen2017/webman-admin/badge/fork.svg?theme=dark)](https://gitee.com/hchen2017/webman-admin/members) [![License](https://img.shields.io/badge/license-Apache2-yellow)](https://gitee.com/hchen2017/webman-admin/blob/master/LICENSE) ## 功能 * 用户管理 * 权限管理 * 会员管理 * 内容管理 * 菜单管理 * 文件管理 * 系统管理 * 数据库管理 ## 安装 ### 前端开发 [adminUI](https://gitee.com/hchen2017/admin-ui) ### 后端安装 - 运行 ~~~ 1.windows debug方式运行(用于开发调试) php start.php start daemon方式运行(用于正式环境) php start.php start -d 下面这个方式支持热更新 windows用户用 双击windows.bat 或者运行 php windows.php 启动 2.Linux环境下启动开发服务 执行命令:php start.php start # 启动开发服务 执行命令:php start.php stop # 停止开发服务 执行命令:php start.php restart # 重启开发服务 守护进程:php start.php start -d # 启动守护进程 一般为生产环境/修改文件后无法自动重载 注:当前默认只有app、config文件夹下文件内容被修改后才会自动重启,全局监听方案,请参考开发文档 nginx代理 伪静态 location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Connection ""; if (!-f $request_filename){ proxy_pass http://webman; } } 当webman需要直接提供外网访问时,建议在webman前增加一个nginx代理,这样有以下好处。 静态资源由nginx处理,让webman专注业务逻辑处理 让多个webman共用80、443端口,通过域名区分不同站点,实现单台服务器部署多个站点 能够实现php-fpm与webman架构共存 nginx代理ssl实现https,更加简单高效 能够严格过滤外网一些不合法请求 upstream webman { server 127.0.0.1:8787; keepalive 10240; } server { server_name 站点域名; listen 80; root /your/webman/public; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; if (!-f $request_filename){ proxy_pass http://webman; } } } ~~~ - 插件 ~~~ env环境变量组件 composer require vlucas/phpdotenv think-template composer require topthink/think-template ThinkORM composer -W require psr/container ^1.1.1 webman/think-orm ThinkCache composer require psr/container ^1.1.1 webman/think-cache 安装PhpSpreadsheet扩展 composer require phpoffice/phpspreadsheet 安装命令行插件 composer require webman/console 安装PHP-JWT扩展 composer require firebase/php-jwt 安装qiniu扩展 composer require qiniu/php-sdk 安装腾讯云COS扩展 composer require qcloud/cos-sdk-v5 ~~~ ## 访问 ~~~ 浏览器访问 http://127.0.0.1:8787 ~~~ ## 注意 ~~~ 关于输出语句 在传统php-fpm项目里,使用echo var_dump等函数输出数据会直接显示在页面里,而在webman中,这些输出往往显示在终端上,并不会显示在页面中(模版文件中的输出除外)。 不要执行exit die语句 执行die或者exit会使得进程退出并重启,导致当前请求无法被正确响应。 不要执行pcntl_fork函数 pcntl_fork用户创建一个进程,这在webman中是不允许的。 ~~~ ## 项目截图 ### Layui - ![article](./public/static/img/layui/article.png) ### Element - ![index](./public/static/img/element/index.png) - ![article](./public/static/img/element/article.png) - ![menu](./public/static/img/element/menu.png) - ![database](./public/static/img/element/database.png) ### Arco Design - ![login](./public/static/img/arco-design/login.png) - ![slide-verify](./public/static/img/arco-design/slide-verify.png) - ![index](./public/static/img/arco-design/index.png) - ![role](./public/static/img/arco-design/role.png) - ![admin](./public/static/img/arco-design/admin.png) - ![article](./public/static/img/arco-design/article.png) - ![menu](./public/static/img/arco-design/menu.png) - ![file](./public/static/img/arco-design/file.png) - ![region](./public/static/img/arco-design/region.png) - ![database](./public/static/img/arco-design/database.png) - ![system](./public/static/img/arco-design/system.png) - ![test](./public/static/img/arco-design/test.png) ## 交流 交流QQ群:614159657 ## 💐 特别鸣谢 - 👉 Webman:[https://www.workerman.net/webman](https://www.workerman.net/webman) - 👉 Element UI:[https://element.eleme.io](https://element.eleme.io) - 👉 Arco Design:[https://arco.design/vue/docs/pro/start](https://arco.design/vue/docs/pro/start) ## 捐助 如果这个项目对您有所帮助,您可以点右上角 💘Star💘支持一下,谢谢!!!