PHP code example of lackoxygen / exception-push

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

    

lackoxygen / exception-push example snippets


[
    'agents' => [
        Wx::class      => [
            'key' => '', 
            'enable' => false  //启用或停用
        ], Ding::class => [
            'token' => '', 
            'secret' => '', 
            'enable' => false  //启用或停用
        ]
    ],

    'client' => [
        'timeout' => 5.0, //超时时间
    ],

    'callbacks' => [
        'formatter' => null, //格式化内容
        'dispatcher' => null    //触发发送内容
    ]
];


php artisan vendor:publish --provider=Lackoxygen\\ExceptionPush\\ExceptionPushProvider

use function Lackoxygen\ExceptionPush\notify as notify

notify('hello world', 'debug');