From 26a2e0054593b5cb70ea667087d61894d09aa0f4 Mon Sep 17 00:00:00 2001 From: slight Date: Wed, 28 Jun 2017 18:26:02 +0800 Subject: [PATCH] composer --- .idea/workspace.xml | 54 +++++++++++++++++++++++++++++---------------- README.md | 15 ++++++++++--- 2 files changed, 47 insertions(+), 22 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 29716eb..87b3866 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,7 @@ - + @@ -55,7 +68,6 @@ @@ -259,12 +272,12 @@ - + - @@ -399,6 +412,7 @@ + @@ -445,6 +459,7 @@ + @@ -459,16 +474,6 @@ - - - - - - - - - - @@ -525,13 +530,24 @@ - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 53e7e92..5e92fe2 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,21 @@ CoolQ机器人 基于[http插件](https://richardchien.github.io/coolq-http-api/ MsgTool.php 对特殊消息的转译等处理操作封装 ``` +``` + + composer require slight-sky/coolq-sdk-php +``` ``` - include 'CoolQ.php'; - $CoolQ = new CoolQ('127.0.0.1',5700,'token'); - $CoolQ->getLoginInfo(); + require_once '../Autoloader.php'; + + use CoolQ\CoolQ; + + $CoolQ = new CoolQ('127.0.0.1',5700,'token'); + + echo $CoolQ->getLoginInfo(); + ```