{"id":15041501,"url":"https://github.com/xutl/yii2-dingtalk","last_synced_at":"2025-05-15T05:31:31.441Z","repository":{"id":57085476,"uuid":"99301256","full_name":"xutl/yii2-dingtalk","owner":"xutl","description":"适用于Yii2 的钉钉聊天机器人","archived":false,"fork":false,"pushed_at":"2017-12-20T09:31:27.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T04:33:10.252Z","etag":null,"topics":["dingtalk","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":"","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/xutl.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-08-04T03:58:07.000Z","updated_at":"2019-03-21T10:01:08.000Z","dependencies_parsed_at":"2022-08-25T00:50:28.987Z","dependency_job_id":null,"html_url":"https://github.com/xutl/yii2-dingtalk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-dingtalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-dingtalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-dingtalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-dingtalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xutl","download_url":"https://codeload.github.com/xutl/yii2-dingtalk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254281972,"owners_count":22045063,"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":["dingtalk","yii2","yii2-extension"],"created_at":"2024-09-24T20:46:10.346Z","updated_at":"2025-05-15T05:31:30.739Z","avatar_url":"https://github.com/xutl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-dingtalk\n\n[![Latest Stable Version](https://poser.pugx.org/xutl/yii2-dingtalk/v/stable.png)](https://packagist.org/packages/xutl/yii2-dingtalk)\n[![Total Downloads](https://poser.pugx.org/xutl/yii2-dingtalk/downloads.png)](https://packagist.org/packages/xutl/yii2-dingtalk)\n[![Dependency Status](https://www.versioneye.com/php/xutl:yii2-dingtalk/dev-master/badge.png)](https://www.versioneye.com/php/xutl:yii2-dingtalk/dev-master)\n[![License](https://poser.pugx.org/xutl/yii2-dingtalk/license.svg)](https://packagist.org/packages/xutl/yii2-dingtalk)\n\n\nInstallation\n------------\n\nNext steps will guide you through the process of installing using [composer](http://getcomposer.org/download/). Installation is a quick and easy three-step process.\n\n### Step 1: Install component via composer\n\nEither run\n\n```\ncomposer require --prefer-dist xutl/yii2-dingtalk\n```\n\nor add\n\n```json\n\"xutl/yii2-dingtalk\": \"~1.0.0\"\n```\n\nto the `require` section of your composer.json.\n\n### Step 2: Configuring your application\n\nAdd following lines to your main configuration file:\n\n```php\n    'components' =\u003e [\n        'log' =\u003e [\n            'targets' =\u003e [\n                [\n                    'class' =\u003e 'xutl\\dingtalk\\DingTalkTarget',\n                    'dingTalk' =\u003e 'dingTalk',\n                    'levels' =\u003e ['error', 'warning'],\n                ],\n            ],\n        ],\n        'dingTalk' =\u003e [\n            'class' =\u003e 'xutl\\dingtalk\\DingTalk',\n            'accessToken' =\u003e '1234567890',\n        ],\n    ],\n```\n\n### Step 3: Start using\n\n```php\nYii::$app-\u003edingTalk-\u003esendText('我其实是一个机器人');\nYii::$app-\u003edingTalk-\u003esendLink('我其实是一个机器人','我其实是一个机器人我其实是一个机器人我其实是一个机器人我其实是一个机器人！','','https://www.dingtalk.com/');\nYii::$app-\u003edingTalk-\u003esendMarkdown('我其实是一个机器人','我其实是一个机器人');\nYii::$app-\u003edingTalk-\u003esendActionCard......\n```\n\nRead [https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.p2lr6t\u0026treeId=257\u0026articleId=105733\u0026docType=1](https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.p2lr6t\u0026treeId=257\u0026articleId=105733\u0026docType=1) to continue\n\n## License\n\nThis is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md)\nfor details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxutl%2Fyii2-dingtalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxutl%2Fyii2-dingtalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxutl%2Fyii2-dingtalk/lists"}