{"id":22941773,"url":"https://github.com/zacksleo/easy-sms-mw","last_synced_at":"2025-08-23T11:15:04.161Z","repository":{"id":57089046,"uuid":"147177194","full_name":"zacksleo/easy-sms-mw","owner":"zacksleo","description":"easy-sms  梦网云通信企业网关","archived":false,"fork":false,"pushed_at":"2018-12-03T08:44:57.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T20:49:48.567Z","etag":null,"topics":["easy-sms"],"latest_commit_sha":null,"homepage":"http://www.montnets.com/","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/zacksleo.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-09-03T08:48:51.000Z","updated_at":"2018-09-03T11:52:19.000Z","dependencies_parsed_at":"2022-08-20T15:30:23.947Z","dependency_job_id":null,"html_url":"https://github.com/zacksleo/easy-sms-mw","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zacksleo/easy-sms-mw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Feasy-sms-mw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Feasy-sms-mw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Feasy-sms-mw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Feasy-sms-mw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacksleo","download_url":"https://codeload.github.com/zacksleo/easy-sms-mw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Feasy-sms-mw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746777,"owners_count":24813583,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["easy-sms"],"created_at":"2024-12-14T13:44:59.568Z","updated_at":"2025-08-23T11:15:04.130Z","avatar_url":"https://github.com/zacksleo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eEasy SMS 梦网云通信企业网关\u003c/h1\u003e\n\n## 安装\n\n```shell\n\n$ composer require \"zacksleo/easy-sms-mw\"\n\n```\n\n## 通过自定义网关使用\n\n```php\n\nuse Overtrue\\EasySms\\EasySms;\nuse zacksleo\\easysms\\Gateways\\MwGateway;\n\n$config = [\n    ...\n    'default' =\u003e [\n        'gateways' =\u003e [\n            'mw', // 配置自定义网关\n        ],\n    ],\n    'gateways' =\u003e [\n        'mw' =\u003e [\n            'userId' =\u003e 'your-api-key',\n            'password' =\u003e 'your-api-password',\n            'pszSubPort' =\u003e 'psz-sub-port',\n        ],\n    ],\n];\n\n$easySms = new EasySms($config);\n\n// 注册\n$easySms-\u003eextend('mw', function($gatewayConfig){\n    // $gatewayConfig 来自配置文件里的 `gateways.mygateway`\n    return new MwGateway($gatewayConfig);\n});\n\n$res = $easySms-\u003esend(13188888888, [\n    'content'  =\u003e '您的验证码为: 6379',\n]);\n\nif ($res['mw']['status'] == 'success') {\n    throw new Exception('发送失败');\n}\n```\n\n\u003e 更多内容请参考：[easy-sms 文档](https://github.com/overtrue/easy-sms)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Feasy-sms-mw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacksleo%2Feasy-sms-mw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Feasy-sms-mw/lists"}