使用超高性能可扩展PHP框架webman以及GatewayWorker框架实现的简单排队叫号系统。
排队叫号系统是一种广泛应用于银行、医院、政务服务中心、餐厅、机场等场所的服务管理系统,旨在提高服务效率,改善客户体验,并优化工作流程。该系统通过自动化处理客户排队流程,减少了人工干预,使得整个服务过程更加有序、高效和透明。
开源技术小栈webman是一款基于workerman开发的高性能HTTP服务框架。webman用于替代传统的php-fpm架构,提供超高性能可扩展的HTTP服务。你可以用webman开发网站,也可以开发HTTP接口或者微服务。
开源技术小栈GatewayWorker基于Workerman开发的一个项目框架,用于快速开发TCP长连接应用,例如app推送服务端、即时IM服务端、游戏服务端、物联网、智能家居等等
git clone https://github.com/zx2020-07/queue.git
cd queue
composer install
import sql/queue.sql
cp .env.example .env
php start.php start
访问http://localhost:8787
即可访问
日志记录
[2024-12-28 18:03:35] default.INFO: 172.18.0.1 GET 127.0.0.1:8204 [360.955ms] [webman/log]
[SQL] [connection:default] selectcount(*) asaggregatefrom`queue_numbers`where`status`in (4, 0, 2) anddate(`created_at`) = '2024-12-28' [41.53 ms]
[SQL] [connection:default] select * from`windows`where`status` = 1orderby`id`asc [1.4 ms]
[2024-12-2818:03:42] default.INFO: 172.18.0.1GET127.0.0.1:8204 [7.34114ms] [webman/log]
[SQL] [connection:default] selectcount(*) asaggregatefrom`queue_numbers`where`status`in (4, 0, 2) anddate(`created_at`) = '2024-12-28' [0.84 ms]
[SQL] [connection:default] select * from`windows`where`status` = 1orderby`id`asc [0.67 ms]
[2024-12-2818:03:49] default.INFO: 172.18.0.1GET127.0.0.1:8204 [5.38110ms] [webman/log]
[SQL] [connection:default] selectcount(*) asaggregatefrom`queue_numbers`where`status`in (4, 0, 2) anddate(`created_at`) = '2024-12-28' [0.8 ms]
[SQL] [connection:default] select * from`windows`where`status` = 1orderby`id`asc [0.31 ms]
[2024-12-2818:03:50] default.INFO: 172.18.0.1GET127.0.0.1:8204/queue/display [7.94386ms] [webman/log]
[SQL] [connection:default] select * from`queue_numbers`where`status` = 4anddate(`created_at`) = '2024-12-28'orderby`updated_at`desc [0.73 ms]
[SQL] [connection:default] select * from`queue_numbers`where`status` = 0and`call_count` = 0anddate(`created_at`) = '2024-12-28'orderby`created_at`asclimit10 [0.41 ms]
[SQL] [connection:default] select * from`queue_numbers`where`status` = 2anddate(`created_at`) = '2024-12-28'orderby`updated_at`desclimit10 [0.55 ms]
[2024-12-2818:03:51] default.INFO: 172.18.0.1GET127.0.0.1:8204/queue/qrcode?url=http%3A%2F%2Flocalhost%3A8204%2Fqueue%2Ftake [368.713ms] [webman/log]
[2024-12-2818:03:57] default.INFO: 172.18.0.1GET127.0.0.1:8204 [6.99901ms] [webman/log]
[SQL] [connection:default] selectcount(*) asaggregatefrom`queue_numbers`where`status`in (4, 0, 2) anddate(`created_at`) = '2024-12-28' [0.77 ms]
[SQL] [connection:default] select * from`windows`where`status` = 1orderby`id`asc [0.48 ms]
[2024-12-2818:03:59] default.INFO: 172.18.0.1GET127.0.0.1:8204/queue/display [4.79888ms] [webman/log]
[SQL] [connection:default] select * from`queue_numbers`where`status` = 4anddate(`created_at`) = '2024-12-28'orderby`updated_at`desc [0.59 ms]
[SQL] [connection:default] select * from`queue_numbers`where`status` = 0and`call_count` = 0anddate(`created_at`) = '2024-12-28'orderby`created_at`asclimit10 [0.35 ms]
[SQL] [connection:default] select * from`queue_numbers`where`status` = 2anddate(`created_at`) = '2024-12-28'orderby`updated_at`desclimit10 [0.36 ms]
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有