2018-05-08 07:40:54 +00:00
|
|
|
# 报警或通知 (PHP版)
|
|
|
|
|
|
|
|
> 该项目使用 composer 来完成加载
|
|
|
|
|
|
|
|
执行
|
|
|
|
```bash
|
2019-02-25 03:24:06 +00:00
|
|
|
composer config repositories.php-alert vcs git@git.int.haowumc.com:composer/php-alert-client.git
|
2018-05-08 07:40:54 +00:00
|
|
|
composer require arch/alert
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### 如何使用
|
|
|
|
|
|
|
|
```php
|
|
|
|
//通知单个或多个用户文本消息
|
|
|
|
user_text_alert('dongwei|lisida','快去领红包');
|
|
|
|
|
|
|
|
//通知一个企业微信群文本消息
|
|
|
|
chat_text_alert('api','系统挂了');
|
|
|
|
|
|
|
|
```
|