{"id":37003408,"url":"https://github.com/linganmin/dingtalk-notice","last_synced_at":"2026-01-14T00:33:18.621Z","repository":{"id":62517291,"uuid":"162258515","full_name":"linganmin/dingtalk-notice","owner":"linganmin","description":"钉钉机器人推送","archived":false,"fork":false,"pushed_at":"2020-03-07T15:15:10.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T05:25:44.432Z","etag":null,"topics":["dingtalk","dingtalk-robot","laravel"],"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/linganmin.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":"2018-12-18T08:51:57.000Z","updated_at":"2023-05-11T01:01:40.000Z","dependencies_parsed_at":"2022-11-02T13:45:59.161Z","dependency_job_id":null,"html_url":"https://github.com/linganmin/dingtalk-notice","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/linganmin/dingtalk-notice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linganmin%2Fdingtalk-notice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linganmin%2Fdingtalk-notice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linganmin%2Fdingtalk-notice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linganmin%2Fdingtalk-notice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linganmin","download_url":"https://codeload.github.com/linganmin/dingtalk-notice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linganmin%2Fdingtalk-notice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":["dingtalk","dingtalk-robot","laravel"],"created_at":"2026-01-14T00:33:18.022Z","updated_at":"2026-01-14T00:33:18.607Z","avatar_url":"https://github.com/linganmin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e dingtalk-notice \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e .\u003c/p\u003e\n\n\n## Installing\n\n```bash\ncomposer require lingan/dingtalk-notice -vvv\n```\n\n## Usage\n### 在Laravel中使用\n#### 发布配置文件\n```shell\nphp artisan vendor:publish\n```\n配置为文件\n```php\nreturn [\n    'robot_base_url' =\u003e env('DING_ROBOT_URL', 'https://oapi.dingtalk.com/robot/send'),\n    'timeout'        =\u003e 2.0,\n    'access_token'   =\u003e [\n        'default' =\u003e env('DING_TOKEN', '你的钉钉群组机器人token'),// 默认\n        'others'  =\u003e [ // 扩展更多token,预留\n            'xxx' =\u003e env('XXX_TOKEN', '你的钉钉群组机器人token'),\n        ],\n    ],\n];\n```\n\n#### 使用辅助函数发送\n```bash\ndingNotice()\n-\u003esetTextMessage('这里是报错信息')\n-\u003esetAtMobiles(['188xxxxxxxx'])\n-\u003esend();\n```\n#### 使用Facade发送\n```bash\n\\Lingan\\DingtalkNotice\\Facades\\DingtalkNotice::getFacadeRoot()\n-\u003euseRobot()\n-\u003egetInstance()\n-\u003esetTextMessage('这里是报错信息')\n-\u003esetAtMobiles(['188xxxxxxxx'])\n-\u003esend();\n```\n#### 使用服务容器发送\n```bash\napp('dingtalk-notice')\n-\u003euseRobot()\n-\u003egetInstance()\n-\u003esetTextMessage('这里是报错信息')\n-\u003esetAtMobiles(['188xxxxxxxx'])\n-\u003esend();\n```\n\n### 在非Laravel项目中使用\n```bash\n\nrequire_once './vendor/autoload.php';\n\n// 配置文件\n$config = [\n    'robot_base_url' =\u003e 'https://oapi.dingtalk.com/robot/send',\n    'timeout' =\u003e 2.0,\n    'access_token' =\u003e [\n        'default' =\u003e '你的钉钉群组机器人token',// 默认\n    ],\n];\n// 实例化\n$dingtalk = new \\Lingan\\DingtalkNotice\\DingtalkNotice($config);\n\n// 发送\n$dingtalk-\u003euseRobot()\n-\u003egetInstance()\n-\u003esetTextMessage('这里是报错信息')\n-\u003esetAtMobiles(['188xxxxxxxx'])\n-\u003esend();\n\n```\n\n## TODO\n\n## Contributing\n\nYou can contribute in one of three ways:\n\n1. File bug reports using the [issue tracker](https://github.com/linganmin/dingtalk-notice/issues).\n2. Answer questions or fix bugs on the [issue tracker](https://github.com/linganmin/dingtalk-notice/issues).\n3. Contribute new features or update the wiki.\n\n_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinganmin%2Fdingtalk-notice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinganmin%2Fdingtalk-notice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinganmin%2Fdingtalk-notice/lists"}