Download the PHP package qq348069510/qq-group-webhook without Composer

On this page you can find all versions of the php package qq348069510/qq-group-webhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package qq-group-webhook

QQ群WebHook机器人助手 v1.1.0

介绍

QQ群WebHook机器人助手

使用说明

  1. 引入WebHook.php文件,并引用类 use QQGroup\WebHook;
  2. 实例化助手对象并设置Key $qqGroupWebHook = new WebHook("Key");
  3. 如果需要重新设置Key可使用 $qqGroupWebHook->setKey("Key");
  4. 推送消息 $qqGroupWebHook->send("消息"); 返回true为推送成功,false则是推送失败
  5. 获取错误信息 $qqGroupWebHook->getErrorMessage(); 用于获取上一次失败后的错误信息
  6. 可设置是否启用消息处理程序 $qqGroupWebHook->setMessageHandler(true); 启用后非字符串类型将转换成合法可执行的PHP代码,有助于开发者测试读取数据 true为启用,false则不启用 默认为true开启
  7. 批量推送消息
    调用方法 $batSend = $qqGroupWebHook->batSend($keys,"默认消息内容"); $keys为key的数组列表$keys = array("key1","key2","key3") 支持每个key推送不同的消息 $keys = array("key1",array("key2","key2的消息内容"),array("key3","key3的消息内容")) 无指定内容为默认消息
    获取返回数据 $batSend返回内容为二维数组 array ( 0 => array ( 0 => 'key1', 1 => true ), 1 => array ( 0 => 'key2', 1 => false, 2 => '错误信息' ),......) 下标0为当前的key 下标1为是否成功 下标2为失败时的错误信息

Composer

安装
composer require qq348069510/qq-group-webhook -vvv
更新
composer update qq348069510/qq-group-webhook -vvv
删除
composer remove qq348069510/qq-group-webhook -vvv

注意事项

为了避免被滥用,tests/WebHook.php文件请在测试后删除

版本日志

v1.1.0
  修复一处错误
  增加批量推送功能,操作更方便
v1.0.0
  QQ群WebHook机器人的消息推送功能
  支持消息处理程序,让WebHook可玩性更高

参与开发

  1. IT老酸奶(qq348069510)

All versions of qq-group-webhook with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package qq348069510/qq-group-webhook contains the following files

Loading the files please wait ....