noxil/simplelinealert

通过 Line Notify Api,轻松创建通知

v1.0.0 2022-08-05 01:20 UTC

This package is auto-updated.

Last update: 2024-09-05 06:30:34 UTC


README

Simple Line Alert 是一个用于通过 Line Notify API 轻松发送消息的库。

安装

使用包管理器 composer 安装 Simple Line Alert。

composer i noxil/simplelinealert

php artisan vendor:publish --provider="noxil\simplelinealert\SimpleLineAlertServiceProvider" --tag="config"

编辑 /Config/simplelinealert.php 配置文件

<?php 

return [
    'url_line_notify' => 'https://notify-api.line.me/api/notify',
    'api_key' => '', // Edit Api key from Line Notify Api
];

用法

use noxil\simplelinealert;
....
# returns 'resulut from Line Notify'
$sla = new SimpleLineAlert();
$sla.sendmessage('Message to sent');
....

贡献

欢迎 Pull requests。对于重大更改,请先打开一个问题以讨论您想更改的内容。

请确保根据适当的情况更新测试。

许可证

MIT