PHP code example of ydg / message-notify
1. Go to this page and download the library: Download ydg/message-notify 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/ */
ydg / message-notify example snippets
use Ydg\MessageNotice\Channel\DingTalkChannel;
use Ydg\MessageNotice\MessageNotify;
use Ydg\MessageNotice\Template\Text;
MessageNotify::make()
->setChannel(DingTalkChannel::class, 'https://oapi.dingtalk.com/robot/send?access_token=xxx')
->setTitle('标题')
->setText('通知测试')
->setTemplate(Text::class)
->send();