{"id":21848920,"url":"https://github.com/flc1125/alidayu","last_synced_at":"2025-05-15T13:02:25.972Z","repository":{"id":62505459,"uuid":"63132798","full_name":"flc1125/alidayu","owner":"flc1125","description":"阿里大于(鱼)API接口-SDK","archived":false,"fork":false,"pushed_at":"2024-12-15T01:17:01.000Z","size":75,"stargazers_count":182,"open_issues_count":3,"forks_count":61,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-05T11:25:42.820Z","etag":null,"topics":["alidayu","api","composer","php","sms"],"latest_commit_sha":null,"homepage":"http://flc.io/2016/09/563.html","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/flc1125.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":"docs/support.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-12T06:33:39.000Z","updated_at":"2025-04-17T06:36:15.000Z","dependencies_parsed_at":"2024-12-28T05:25:58.688Z","dependency_job_id":"0e43bbd1-f588-4d04-a7f6-26e54007c6f8","html_url":"https://github.com/flc1125/alidayu","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":0.09230769230769231,"last_synced_commit":"b54abb64a0c1616b741e352a4c19873a0a851fde"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flc1125%2Falidayu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flc1125%2Falidayu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flc1125%2Falidayu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flc1125%2Falidayu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flc1125","download_url":"https://codeload.github.com/flc1125/alidayu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084703,"owners_count":22011927,"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":["alidayu","api","composer","php","sms"],"created_at":"2024-11-28T00:09:27.690Z","updated_at":"2025-05-15T13:02:25.915Z","avatar_url":"https://github.com/flc1125.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 阿里大于(鱼) - v2.0\n\n[![Latest Stable Version](https://poser.pugx.org/flc/alidayu/v/stable)](https://packagist.org/packages/flc/alidayu)\n[![Total Downloads](https://poser.pugx.org/flc/alidayu/downloads)](https://packagist.org/packages/flc/alidayu)\n![php\u003e=5.4](https://img.shields.io/badge/php-\u003e%3D5.4-orange.svg?maxAge=2592000)\n[![License](https://poser.pugx.org/flc/alidayu/license)](https://packagist.org/packages/flc/alidayu)\n[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)\n[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE)\n\n\u003e PS：**阿里短信** [https://github.com/flc1125/dysms](https://github.com/flc1125/dysms)\n\n## 更新\n\n#### v2.0.6 (2017-08-12)\n\n- fixed [#6](https://github.com/flc1125/alidayu/issues/6)\n\n#### v2.0.5 (2017-01-25)\n\n- 修复autoload.php https://github.com/flc1125/alidayu/issues/5\n\n#### v2.0.4 (2016-10-25)\n\n- 新增自动载入功能（不依靠composer）\n- 新增Client::request快捷调用方法\n\n#### v2.0.3 (2016-10-12)\n\n- 新增沙箱配置\n\n## 功能\n\n- `通过` [短信发送](docs/alibaba_aliqin_fc_sms_num_send.md)\n- `通过` [短信发送记录查询](docs/alibaba_aliqin_fc_sms_num_query.md)\n- `通过` [文本转语音通知](docs/alibaba_aliqin_fc_tts_num_singlecall.md)\n- `通过` [语音通知](docs/alibaba_aliqin_fc_voice_num_singlecall.md)\n- `待测` [多方通话](docs/alibaba_aliqin_fc_voice_num_doublecall.md)\n- `待测` [流量直充](docs/alibaba_aliqin_fc_flow_charge.md)\n- `待测` [流量直充查询](docs/alibaba_aliqin_fc_flow_query.md)\n- `待测` [流量直充分省接口](docs/alibaba_aliqin_fc_flow_charge_province.md)\n- `通过` [流量直充档位表](docs/alibaba_aliqin_fc_flow_grade.md)\n- [辅助方法](docs/support.md)\n\n\u003e **`待测`**：因个人开发者，阿里大于权限相对较低。暂时无法测试；功能已开发，如测试可用，请告知~~\n\n## 环境\n\n- PHP \u003e= 5.4\n- [composer](https://getcomposer.org/)\n\n## 安装\n\n```shell\ncomposer require flc/alidayu\n```\n\n或\n\n```php\nrequire '/path/to/alidayu/autoload.php';\n```\n\n## 使用\n\n```php\n\u003c?php\nuse Flc\\Alidayu\\Client;\nuse Flc\\Alidayu\\App;\nuse Flc\\Alidayu\\Requests\\AlibabaAliqinFcSmsNumSend;\nuse Flc\\Alidayu\\Requests\\IRequest;\n\n// 配置信息\n$config = [\n    'app_key'    =\u003e '*****',\n    'app_secret' =\u003e '************',\n    // 'sandbox'    =\u003e true,  // 是否为沙箱环境，默认false\n];\n\n\n// 使用方法一\n$client = new Client(new App($config));\n$req    = new AlibabaAliqinFcSmsNumSend;\n\n$req-\u003esetRecNum('13312311231')\n    -\u003esetSmsParam([\n        'number' =\u003e rand(100000, 999999)\n    ])\n    -\u003esetSmsFreeSignName('叶子坑')\n    -\u003esetSmsTemplateCode('SMS_15105357');\n\n$resp = $client-\u003eexecute($req);\n\n// 使用方法二\nClient::configure($config);  // 全局定义配置（定义一次即可，无需重复定义）\n\n$resp = Client::request('alibaba.aliqin.fc.sms.num.send', function (IRequest $req) {\n    $req-\u003esetRecNum('13312311231')\n        -\u003esetSmsParam([\n            'number' =\u003e rand(100000, 999999)\n        ])\n        -\u003esetSmsFreeSignName('叶子坑')\n        -\u003esetSmsTemplateCode('SMS_15105357');\n});\n\n// 返回结果\nprint_r($resp);\nprint_r($resp-\u003eresult-\u003emodel);\n?\u003e\n```\n\n## 帮助\n\n- 意见、BUG反馈： https://github.com/flc1125/alidayu/issues\n\n## 支持\n\n- 官方网址： https://www.alidayu.com/\n- 官方API文档： https://api.alidayu.com/doc2/apiList.htm\n- composer： https://getcomposer.org/\n\n## 捐赠\n\n如果你觉得本扩展对你有帮助，请捐赠以表支持，谢谢~~\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"center\"\u003e\u003cimg src=\"https://flc.io/static/images/wechat.jpg\" width=\"220\"\u003e\u003cp\u003e微信\u003c/p\u003e\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003cimg src=\"https://flc.io/static/images/alipay.jpg\" width=\"220\"\u003e\u003cp\u003e支付宝\u003c/p\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\n- MIT\n- Anti 996\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflc1125%2Falidayu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflc1125%2Falidayu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflc1125%2Falidayu/lists"}