ella123 / hyperf-exception-notify
hyperf exception notify
3.1.13
2024-08-08 03:29 UTC
Requires
- php: >=8.2
- ella123/hyperf-utils: ^3.1
- guanguans/notify: ^1.25
- hyperf/async-queue: ^3.1
- hyperf/cache: ^3.1
- hyperf/config: ^3.1
- hyperf/di: ^3.1
- hyperf/exception-handler: ^3.1
- hyperf/framework: ^3.1
- hyperf/http-server: ^3.1
- hyperf/logger: ^3.1
- hyperf/redis: ^3.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- hyperf/command: ^3.1
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.0
- swoole/ide-helper: ^4.5
- symfony/var-dumper: ^6.0
Suggests
- swow/swow: Required to create swow components.
This package is auto-updated.
Last update: 2025-03-08 04:48:57 UTC
README
环境要求
- PHP >= 8.2
- hyperf >= 3.1
安装
composer require ella123/hyperf-exception-notify -vvv
配置
php bin/hyperf.php vendor:publish ella123/hyperf-exception-notify
支持通知
log 控制台日志 dingTalk 钉钉群机器人 weWork 企业微信群机器人 feiShu 飞书群机器人
使用案例
use function ELLa123\HyperfExceptionNotify\exception_notify_report; use function ELLa123\HyperfExceptionNotify\exception_notify_report_if; # 异常通知报告 exception_notify_report($throwable, 'log'); # 是否满足条件,如果满足条件,则报告 exception_notify_report_if(function(){ return true; }, $throwable, 'log');