PHP code example of qklin / laravel-notifys

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

    

qklin / laravel-notifys example snippets


return [
    'default' => 'alarm_wx',
    'bizs' => [
        'alarm_dd' => [
            'driver' => 'dingding',
            'api' => 'https://oapi.dingtalk.com/robot/send?access_token={access_token}'
        ],
        'alarm_wx' => [
            'driver' => 'weixin',
            'api' => 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={access_token}'
        ],
    ]
];

Notify::text("测试文字,不通知所有人", [mobile], false);
Notify::text(function(){return [];}, "测试文字,不通知所有人", [mobile], false);

Notify::text("测试文字,不通知所有人", [mobile], false);
Notify::text(function(){return [];}, "测试文字,不通知所有人", [mobile], false);