PHP code example of liguangchun / qyweixin-grouprobot

1. Go to this page and download the library: Download liguangchun/qyweixin-grouprobot library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

liguangchun / qyweixin-grouprobot example snippets


use DtApp\Notice\QyWeiXin\qywechat\GroupRobotService;

try {
    GroupRobotService::instance()
        ->key('xxx-x-x-x-xxx')
        ->text('测试');
} catch (\DtApp\Notice\QyWeiXin\exception\Exception $e) {
    var_dump($e->getMessage());
}