{"id":20916033,"url":"https://github.com/pigloverabbit520/yunxinhelper","last_synced_at":"2025-10-14T11:02:27.951Z","repository":{"id":62539488,"uuid":"161463705","full_name":"pigLoveRabbit520/YunXinHelper","owner":"pigLoveRabbit520","description":"网易云信sdk","archived":false,"fork":false,"pushed_at":"2019-07-19T05:33:41.000Z","size":222,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T17:02:20.410Z","etag":null,"topics":["php","sdk","sdk-php"],"latest_commit_sha":null,"homepage":null,"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/pigLoveRabbit520.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}},"created_at":"2018-12-12T09:25:09.000Z","updated_at":"2020-06-18T06:50:38.000Z","dependencies_parsed_at":"2022-11-02T15:17:35.508Z","dependency_job_id":null,"html_url":"https://github.com/pigLoveRabbit520/YunXinHelper","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/pigLoveRabbit520/YunXinHelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigLoveRabbit520%2FYunXinHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigLoveRabbit520%2FYunXinHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigLoveRabbit520%2FYunXinHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigLoveRabbit520%2FYunXinHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pigLoveRabbit520","download_url":"https://codeload.github.com/pigLoveRabbit520/YunXinHelper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigLoveRabbit520%2FYunXinHelper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265540092,"owners_count":23784878,"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":["php","sdk","sdk-php"],"created_at":"2024-11-18T16:19:25.217Z","updated_at":"2025-10-14T11:02:22.887Z","avatar_url":"https://github.com/pigLoveRabbit520.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 安装\n推荐使用composer：`composer require salamander/yun-xin-helper`\n\n# 使用\n### 创建实例\n```\n$appKey = '****'; // 网易云信分配的账号\n$appSecrt = '****'; // 网易云信分配的密钥\n$entrance = new \\YunXinHelper\\Entrance($appKey, $appSecrt);\n```\n\n### 用户\n```\n# 创建用户\n$entrance-\u003euser()-\u003ecreate($accid, $name, $icon);\n\n\n# 用户基本信息更新\n$entrance-\u003euser()-\u003eupdate($accid, $token);\n\n\n# 封禁用户\n$entrance-\u003euser()-\u003eblock($accid);\n\n\n# 解禁用户\n$entrance-\u003euser()-\u003eunblock($accid);\n\n\n# 更新用户名片\n$entrance-\u003euser()-\u003eupdateUserInfo($accid, $name, $icon);\n\n\n# 批量获取用户名片\n$entrance-\u003euser()-\u003egetUserInfos($accids);\n```\n\n### 消息功能\n```\n# 文本消息\n$entrance-\u003echat()-\u003esendTextMsg($accidFrom, $to, $open, $text);\n\n# 图片消息\n$entrance-\u003echat()-\u003esendPictureMsg($accidFrom, $to, $open,\n        $picName, $picMD5, $picUrl, $picExt, $picWidth, $picHeight, $picSize);\n\n# 批量文本消息\n$entrance-\u003echat()-\u003esendTextBatchMsg($accidFrom, $accidsTo, $text);\n\n\n# 发送自定义系统通知\n$entrance-\u003echat()-\u003esendAttachMsg($from, CHAT::CHAT_ONT_TO_ONE, $to, $attach);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigloverabbit520%2Fyunxinhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpigloverabbit520%2Fyunxinhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigloverabbit520%2Fyunxinhelper/lists"}