jiankechu/push-robot

企业微信消息推送

1.0.1 2023-05-27 08:15 UTC

This package is auto-updated.

Last update: 2025-05-27 12:53:24 UTC


README

  • 企业微信
    //推送异常消息示例
  $config = [
            'wx_work' => [
                'key' => '企业微信群机器人key'
            ]
        ];
        $msg    = new \ZJKe\PushRobot\WxWork\MsgTplExceptionMarkdown(new Exception('test'));
        $msg->setEnv('test')->setParam(['a' => 'a'])->setUrl('/test');
        $robot = (new \ZJKe\PushRobot\WxWork\Robot($config, $msg));
        $robot->push();