PHP code example of ipaya / yii2-dingtalk-robot

1. Go to this page and download the library: Download ipaya/yii2-dingtalk-robot 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/ */

    

ipaya / yii2-dingtalk-robot example snippets




use iPaya\DingTalk\Robot\Robot;

$robot = new Robot([
    'accessToken' => '<你的聊天机器人 Access Token>'
]);

$robot->sendText('机器人消息');