tiway/tingtalk-robot

There is no license information available for the latest version (dev-master) of this package.

Help to create a tingTalk robot webhook

dev-master 2020-01-12 02:33 UTC

This package is auto-updated.

Last update: 2024-06-16 00:31:16 UTC


README

README

tingtalk-for-laravel 是一个简单发送企业钉钉群助手的轮子

Installation

$ composer require tiway/tingtalk-robot

config/app.php 添加配置

providers 添加

\Tiway\TingTalkRobot\TingTalkRobotServiceProvider::class,

aliases 添加

'TingTalk'=> \Tiway\TingTalkRobot\Facades\DingTalkRobot::class

发布配置文件

$ php artisan vendor:publish --provider=Tiway\TingTalkRobot\TingTalkRobotServiceProvider

Basic Usage

在 config/tingtalk_robot.php 添加 钉钉机器人的token

  
'token_group' => [
       "test" => '74F0B992DC4F497CBBC7B63F847B2186CBBC7B63F847B2186'
   ]

在 routes/console.php 中添加测试

Artisan::command('tiway:test_ting', function () {
    $res = \Tiway\TingTalkRobot\Facades\DingTalkRobot::alertToDing('test','33');
    dd($res);

});

更多详细信息 企业钉钉群发送信息轮子.