{"id":19832980,"url":"https://github.com/tinywan/msg-system","last_synced_at":"2025-02-28T17:48:14.668Z","repository":{"id":84688606,"uuid":"136783263","full_name":"Tinywan/msg-system","owner":"Tinywan","description":"基于workerman的直播间消息系统","archived":false,"fork":false,"pushed_at":"2018-08-25T08:53:23.000Z","size":2138,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T00:36:10.660Z","etag":null,"topics":["gatewayworker","redis","workerman"],"latest_commit_sha":null,"homepage":"","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/Tinywan.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-10T05:55:31.000Z","updated_at":"2020-09-28T01:35:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8273be1f-8fb1-4fd9-8cda-f46125437956","html_url":"https://github.com/Tinywan/msg-system","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Fmsg-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Fmsg-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Fmsg-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinywan%2Fmsg-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tinywan","download_url":"https://codeload.github.com/Tinywan/msg-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241192307,"owners_count":19925307,"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":["gatewayworker","redis","workerman"],"created_at":"2024-11-12T11:39:09.567Z","updated_at":"2025-02-28T17:48:14.647Z","avatar_url":"https://github.com/Tinywan.png","language":"PHP","readme":"#### 安装\n\n```php\ngit clone https://github.com/Tinywan/msg-system.git\n```\n\n#### 解决依赖 \n\n```php\ncomposer install\n```\n\n#### 编辑配置文件\n\n###### Redis（默认）  \n\n```php\nconfig/RedisConfig.php\n```\n\n###### MySQL \n\n```php\nconfig/DbConfig.php\n```\n\n#### 开始服务  \n\n###### Linux\n\n```php\nphp start.php start\n```\n\u003e 守护进程 `php start.php start -d`\n\n###### Windows \n\n```php\nstart_for_win.bat\n```\n\u003e直接运行批处理文件即可，如何做成一个服务请自行谷歌 \n\n#### 数据字典  \n\n###### 消息事件   \n\n|  字段   |  描述   |\n| :--- | :--- |\n| init  |  初始化  |\n| json  | 加入直播间 |\n|  say  | 发表评论  |\n| like  |  点赞   |\n| close |  退出   |\n\n###### 消息内容描述   \n\n|  字段   |  描述   |\n| :--- | :--- |\n| client_id  |  客户端连接唯一id  |\n| msg  | 消息 |\n| joinTime  | 加入直播间时间  |\n| commentTime  |  评论时间|\n| content |  评论内容   |\n| roomId |  直播间id   |\n| userId |  用户id   |\n| userName |  用户昵称   |\n\n#### 客户端页面\n\n[代码](https://github.com/Tinywan/msg-system/issues/1)\n\n#### Demo  \n\n![demo-01](/library/Images/show.gif) \n\n#### 问题  \n\n* 提示错误`start_businessworker.php terminated and try to restart`\n  * 请查看Redis是否配置合适\n  * 如果`composer.json`修改过，使用`composer dump-autoload`命令则重新自动生成autoload的文件\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinywan%2Fmsg-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinywan%2Fmsg-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinywan%2Fmsg-system/lists"}