{"id":33966069,"url":"https://github.com/84hero/aliyun-sdk-mns","last_synced_at":"2026-04-07T15:31:27.661Z","repository":{"id":57082844,"uuid":"98630061","full_name":"84hero/aliyun-sdk-mns","owner":"84hero","description":"aliyun php sdk mns","archived":false,"fork":false,"pushed_at":"2017-11-21T10:46:55.000Z","size":59,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-17T18:50:33.493Z","etag":null,"topics":["aliyun","aliyun-mns","aliyun-sdk-mns","mns","php","skd"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/84hero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-28T08:53:53.000Z","updated_at":"2024-10-23T16:51:02.000Z","dependencies_parsed_at":"2022-08-24T14:58:22.809Z","dependency_job_id":null,"html_url":"https://github.com/84hero/aliyun-sdk-mns","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/84hero/aliyun-sdk-mns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/84hero%2Faliyun-sdk-mns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/84hero%2Faliyun-sdk-mns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/84hero%2Faliyun-sdk-mns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/84hero%2Faliyun-sdk-mns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/84hero","download_url":"https://codeload.github.com/84hero/aliyun-sdk-mns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/84hero%2Faliyun-sdk-mns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aliyun","aliyun-mns","aliyun-sdk-mns","mns","php","skd"],"created_at":"2025-12-12T23:02:34.508Z","updated_at":"2026-04-07T15:31:27.656Z","avatar_url":"https://github.com/84hero.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aliyun MNS PHP SDK\n\n[![Latest Stable Version](https://poser.pugx.org/wushunyi/aliyun-sdk-mns/version)](https://packagist.org/packages/wushunyi/aliyun-sdk-mns)\n[![Build Status](https://travis-ci.org/84hero/aliyun-sdk-mns.svg?branch=master)](https://travis-ci.org/84hero/aliyun-sdk-mns)\n[![Coverage Status](https://coveralls.io/repos/github/84hero/aliyun-sdk-mns/badge.svg)](https://coveralls.io/github/84hero/aliyun-sdk-mns)\n[![Total Downloads](https://poser.pugx.org/wushunyi/aliyun-sdk-mns/downloads)](https://packagist.org/packages/wushunyi/aliyun-sdk-mns)\n[![Latest Unstable Version](https://poser.pugx.org/wushunyi/aliyun-sdk-mns/v/unstable)](//packagist.org/packages/wushunyi/aliyun-sdk-mns)\n[![License](https://poser.pugx.org/wushunyi/aliyun-sdk-mns/license)](https://packagist.org/packages/wushunyi/aliyun-sdk-mns)\n\n# 安装方法\n\n- 引用composer包\n```\ncomposer require wushunyi/aliyun-sdk-mns\n```\n\n- 代码引用composer自动加载工具\n\n```\nrequire_once \"vendor/autoload.php\";\n\n```\n\n- 实例化客户端\n```\nuse AliyunMNS\\Client;\n$client = new Client($endPoint, $accessId, $accessKey);\n\n```\n\n# 使用方法\n\n## 主题操作\n\n## 队列操作\n\n## 消息操作\n\n- 发送消息\n\n    - 主题消息\n\n    ```\n    use AliyunMNS\\Client;\n    use AliyunMNS\\Requests\\PublishMessageRequest;\n\n    $endPoint = '';\n    $accessId = '';\n    $accessKey = '';\n    $topicName = '';\n\n    $client = new Client($endPoint, $accessId, $accessKey);\n    $topic = $client-\u003egetTopicRef($topicName);//获取Topic地址\n    $messageBody = 'test message';  //消息内容\n    $messageTag = 'pay_success';    //消息标签\n    $request = new PublishMessageRequest($messageBody,$messageTag);\n    $res = $topic-\u003epublishMessage($request);\n    $res-\u003eisSucceed();\n    ```\n\n    - 队列消息\n    ```\n    use AliyunMNS\\Client;\n    use AliyunMNS\\Requests\\PublishMessageRequest;\n\n    $endPoint = '';\n    $accessId = '';\n    $accessKey = '';\n    $queueName = '';\n\n    $client = new Client($endPoint, $accessId, $accessKey);\n    $topic = $client-\u003egetQueueRef($queueName);//获取Topic地址\n    $messageBody = 'test message';  //消息内容\n    $request = new PublishMessageRequest($messageBody);\n    $res = $topic-\u003epublishMessage($request);\n    $res-\u003eisSucceed();\n\n    ```\n\n\n# SDK核心代码来自阿里云官方\n\n- MNS SDK for PHP    \nPlease refer to http://www.aliyun.com/product/mns and  https://docs.aliyun.com/?spm=5176.7393424.9.6.5ki1hv#/pub/mns/api_reference/intro\u0026intro for more API details.    \n\n- Samples    \nYou must fulfill the AccessId/AccessKey/AccountID in the example before running.   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F84hero%2Faliyun-sdk-mns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F84hero%2Faliyun-sdk-mns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F84hero%2Faliyun-sdk-mns/lists"}