# 酒吧管理系统 **Repository Path**: bool_it/bar_management_system ## Basic Information - **Project Name**: 酒吧管理系统 - **Description**: 酒吧管理系统 收银管理系统 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 16 - **Forks**: 17 - **Created**: 2019-12-28 - **Last Updated**: 2026-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 酒吧管理系统 > 基于 ThinkPHP 8.1 开发的酒吧管理系统 ## 项目信息 | 项目 | 说明 | |------|------| | 项目名称 | 酒吧管理系统 | | 框架 | ThinkPHP 8.1 | | PHP版本 | >= 8.0.0 | | 数据库 | MySQL | ## 案例展示 | 安装页面 | 登录页面 | 管理后台 | |----------|----------|----------| | ![安装页面](demo/install.png) | ![登录页面](demo/login.png) | ![管理后台](demo/index.png) | ## 测试账号 | 账号 | 密码 | |------|------| | admin | admin | ## 技术栈 - **后端框架**: ThinkPHP 8.1 - **ORM**: think-orm - **文件系统**: think-filesystem - **调试工具**: think-trace, think-dumper ## 目录结构 ``` bar_system/ ├── app/ # 应用目录 │ ├── controller/ # 控制器 │ ├── middleware/ # 中间件 │ ├── model/ # 模型 │ ├── service/ # 服务层 │ └── common.php # 公共函数 ├── config/ # 配置目录 ├── public/ # Web根目录 │ ├── index.php # 入口文件 │ └── static/ # 静态资源 ├── route/ # 路由定义 ├── view/ # 视图目录 ├── runtime/ # 运行时目录 ├── b_user.sql # 数据库文件 ├── .env # 环境配置 ├── composer.json # 依赖配置 └── think # 命令行入口 ``` ## 启动方式 ### 方式一:FrankenPHP(推荐) 1. 将 `frankenphp.exe` 复制到项目根目录 2. 运行命令:`frankenphp worker public/index.php` 3. 访问:http://127.0.0.1:8000 ```bash frankenphp worker public/index.php ``` ### 方式二:PHP 内置服务器 ```bash cd public php -S localhost:8080 ``` 访问地址:http://localhost:8080 ## 环境要求 | 环境 | 要求 | |------|------| | PHP | >= 8.0.0 | | MySQL | >= 5.7 | | 扩展 | pdo, mbstring, json | ## 安装部署 ### 1. 安装依赖 ```bash composer install ``` ### 2. 配置环境变量 复制 `.env.example` 为 `.env` 并修改配置: ```bash # 数据库配置 DB_HOST=127.0.0.1 DB_PORT=3306 DB_NAME=bar DB_USER=root DB_PASS=your_password # 开启调试模式 APP_DEBUG=true ``` ### 3. 安装数据库 访问 `http://your-domain/install.php` 完成数据库安装。 ### 4. 启动服务 ```bash # 开发模式启动 php think run # 访问地址 http://localhost:8000 ``` ## 快速开始 ```bash # 克隆项目 git clone # 安装依赖 composer install # 配置环境变量 copy .env.example .env # 启动服务 php think run ``` ## 开发指南 ```bash # 创建控制器 php think make:controller index # 创建模型 php think make:model User # 创建中间件 php think make:middleware Auth ``` ## 许可证 本项目基于 [Apache-2.0](LICENSE.txt) 协议开源。 ---

Powered by ThinkPHP 8.1