PHP code example of flttgo / laravel-robot

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

    

flttgo / laravel-robot example snippets


composer 

php artisan vendor:publish --provider="Flttgo\LaravelRobot\RobotServiceProvider"

use Flttgo\LaravelRobot\Robot;
// 简单实用 发送到 config 默认配置应用群组
Robot::sendTextMsg('测试', [
    'name' => '小名'
])
// 发送到指定应用飞书 技术群组
Robot::group('feishu.jishu')->sendTextMsg('测试', [
    'name' => '小名'
])