(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{577:function(t,s,a){"use strict";a.r(s);var e=a(4),r=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h2",{attrs:{id:"requirement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#requirement"}},[t._v("#")]),t._v(" Requirement")]),t._v(" "),a("ol",[a("li",[t._v("PHP >= 7.2")]),t._v(" "),a("li",[a("a",{attrs:{href:"https://getcomposer.org/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Composer"),a("OutboundLink")],1)]),t._v(" "),a("li",[t._v("Openssl拓展")])]),t._v(" "),a("h2",{attrs:{id:"installation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),a("div",{staticClass:"language-shell extra-class"},[a("pre",{pre:!0,attrs:{class:"language-shell"}},[a("code",[t._v("$ "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("composer")]),t._v(" require longing/easy-im:~1.0 -vvv\n")])])]),a("h2",{attrs:{id:"usage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[t._v("#")]),t._v(" Usage")]),t._v(" "),a("p",[t._v("基本使用（以服务端为例）:")]),t._v(" "),a("div",{staticClass:"language-php extra-class"},[a("pre",{pre:!0,attrs:{class:"language-php"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("use")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token package"}},[t._v("EasyIM"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("Factory")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token variable"}},[t._v("$options")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n    "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'sdk_app_id'")]),t._v("    "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'1400306676'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("                                                        "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// sdkAppId")]),t._v("\n    "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'secret'")]),t._v("        "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'3e373d1ef02ef192ee26c94760681cdf492b4b7f053fc16504d30a77a028e76d'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("  "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// secret")]),t._v("\n    "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'identifier'")]),t._v("    "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'admin'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("                                                             "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 管理员账号")]),t._v("\n    "),a("span",{pre:!0,attrs:{class:"token string single-quoted-string"}},[t._v("'expire'")]),t._v("        "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("86400")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("                                                               "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 签名过期时间")]),t._v("\n    "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ...")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token variable"}},[t._v("$app")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name static-context"}},[t._v("Factory")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("::")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("TencentIM")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token variable"}},[t._v("$options")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[a("a",{attrs:{href:"https://github.com/TestsLing/easy-im",target:"_blank",rel:"noopener noreferrer"}},[t._v("更多"),a("OutboundLink")],1)]),t._v(" "),a("h1",{attrs:{id:"status"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#status"}},[t._v("#")]),t._v(" Status")]),t._v(" "),a("p",[t._v("欢迎查阅 "),a("a",{attrs:{href:"https://github.com/TestsLing/easy-im/projects",target:"_blank",rel:"noopener noreferrer"}},[t._v("项目进度板"),a("OutboundLink")],1),t._v("。")]),t._v(" "),a("h1",{attrs:{id:"contributors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contributors"}},[t._v("#")]),t._v(" Contributors")]),t._v(" "),a("p",[t._v("这个项目的存在多亏了所有的贡献者。")]),t._v(" "),a("p",[t._v("This project exists thanks to all the people who contribute.")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/TestsLing"}},[a("img",{staticStyle:{width:"82px",hieght:"82px"},attrs:{src:"https://avatars1.githubusercontent.com/u/40593646?s=82&u=23b56590213003dbaea677cb14b1fc7f8cc62209&v=4"}})]),t._v(" "),a("a",{attrs:{href:"https://github.com/DDDecade0715"}},[a("img",{staticStyle:{width:"82px",hieght:"82px"},attrs:{src:"https://avatars1.githubusercontent.com/u/29270630?s=82&u=91f7c75ae86ddfa650d55e9a6874def716829fbd&v=4"}})]),t._v(" "),a("a",{attrs:{href:"https://github.com/YamssL"}},[a("img",{staticStyle:{width:"82px",hieght:"82px"},attrs:{src:"https://avatars1.githubusercontent.com/u/42439509?s=82&u=6e2f189959d38c757ce58cc7453d35962eaf476f&v=4"}})])]),t._v(" "),a("h1",{attrs:{id:"sponsor-赞助"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sponsor-赞助"}},[t._v("#")]),t._v(" Sponsor 赞助")]),t._v(" "),a("blockquote",[a("p",[t._v("🙏 感谢所有金主爸爸，如有意向请通过 Open Collective 赞助我们！")])]),t._v(" "),a("h1",{attrs:{id:"backers-支持者"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backers-支持者"}},[t._v("#")]),t._v(" Backers 支持者")]),t._v(" "),a("p",[t._v("感谢我们所有的支持者！")]),t._v(" "),a("p",[t._v("Thank you to all our backers! 🙏 ["),a("a",{attrs:{href:""}},[t._v("Become a backer")]),t._v("]")]),t._v(" "),a("h1",{attrs:{id:"license"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#license"}},[t._v("#")]),t._v(" License")]),t._v(" "),a("p",[t._v("MIT")]),t._v(" "),a("h1",{attrs:{id:"鸣谢"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#鸣谢"}},[t._v("#")]),t._v(" 鸣谢")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"https://www.recoluan.com",target:"_blank",rel:"noopener noreferrer"}},[t._v("午后南杂"),a("OutboundLink")],1),t._v("          感谢如此优秀的博客框架")]),t._v(" "),a("li",[a("a",{attrs:{href:"https://www.easywechat.com",target:"_blank",rel:"noopener noreferrer"}},[t._v("easywechat"),a("OutboundLink")],1),t._v("     感谢如此优秀的"),a("code",[t._v("Wechat SDK")])])])])}),[],!1,null,null,null);s.default=r.exports}}]);