PHP code example of xyu / dingtalk
1. Go to this page and download the library: Download xyu/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/ */
xyu / dingtalk example snippets
Hyperf 调用:
$app = make(\Xyu\Dingtalk\Hyperf\Factory::class)->make()->text->message('message')->send();
fpm相关框架 调用:
$app = (new \Xyu\Dingtalk\DingApp(config('ding')))->text->message('message')->send();
bash
Hyperf
php bin/hyperf.php vendor:publish xyu/dingtalk
Laravel
php artisan vendor:publish