PHP code example of listen / dingtalk

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

    

listen / dingtalk example snippets


\Listen\DingTalk\Providers\DingTalkServiceProvider::class,

php artisan vendor:publish --provider='Listen\DingTalk\Providers\DingTalkServiceProvider'

$DingTalk = new DingTalk();
$message = new Message();
$title = '测试link类型title';
$text = '测试link类型text';
$messageUrl = 'https://www.baidu.com/';
$picUrl = '';
$data = $message->link($title, $text, $messageUrl, $picUrl);
$DingTalk->send($data);