noxil/simplelinealert

Easy to create notification to Line by Line Notify Api

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

This package is auto-updated.

Last update: 2025-05-05 08:08:28 UTC


README

Simple Line Alert is a Library for easy sending message by Line Notify API.

Installation

Use the package manager composer to install Simple Line Alert.

composer i noxil/simplelinealert

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

Edit Config File at /Config/simplelinealert.php

<?php 

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

Usage

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

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT