{"id":15282354,"url":"https://github.com/xutl/yii2-tim","last_synced_at":"2026-01-04T18:12:35.178Z","repository":{"id":57085388,"uuid":"96491339","full_name":"xutl/yii2-tim","owner":"xutl","description":"适用于Yii2的腾讯云通信","archived":false,"fork":false,"pushed_at":"2018-08-13T09:19:26.000Z","size":367,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T22:49:48.271Z","etag":null,"topics":["chat","im","yii2","yii2-extension","yii2-widgets"],"latest_commit_sha":null,"homepage":"https://www.qcloud.com/product/im","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/xutl.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":"2017-07-07T02:34:41.000Z","updated_at":"2019-08-19T14:16:08.000Z","dependencies_parsed_at":"2022-08-24T22:50:38.246Z","dependency_job_id":null,"html_url":"https://github.com/xutl/yii2-tim","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-tim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-tim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-tim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xutl%2Fyii2-tim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xutl","download_url":"https://codeload.github.com/xutl/yii2-tim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245136352,"owners_count":20566586,"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":["chat","im","yii2","yii2-extension","yii2-widgets"],"created_at":"2024-09-30T14:25:18.080Z","updated_at":"2026-01-04T18:12:35.140Z","avatar_url":"https://github.com/xutl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-tim\n适用于Yii2的腾讯云通信\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```bash\n$ composer require xutl/yii2-tim:~3.0\n```\n\nor add\n\n```\n\"xutl/yii2-tim\": \"~3.0\"\n```\n\nto the `require` section of your `composer.json` file.\n\n配置\n----\n\nTo use this extension, you have to configure the Connection class in your application configuration:\n\n```php\nreturn [\n    //....\n    'components' =\u003e [\n        'im' =\u003e [\n            'class' =\u003e 'xutl\\tim\\Tim',\n            'appId' =\u003e '123456',\n            'accountType' =\u003e '123456',\n            'administrator' =\u003e 'webmaster',\n            'privateKey' =\u003e '私钥字符串一行',\n            'publicKey' =\u003e '公钥字符串一行',\n        ],\n    ]\n];\n```\n\n使用\n----\n\n```php\n\n/** var Tim $im */\n$im = Yii::$app-\u003eim-\u003egetAccount('test');\n$res = $im-\u003ekick();\nprint_r($res);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxutl%2Fyii2-tim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxutl%2Fyii2-tim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxutl%2Fyii2-tim/lists"}