Skip to content

Latest commit

 

History

History
108 lines (73 loc) · 3.21 KB

README.md

File metadata and controls

108 lines (73 loc) · 3.21 KB

M-Stat.gr notifications channel for Laravel

Latest Version on Packagist Software License Build Status Quality Score Code Coverage Total Downloads

This package makes it easy to send notifications using MstatGr with Laravel 9.x.

This is where your description should go. Add a little code example so build can understand real quick how the package can be used. Try and limit it to a paragraph or two.

Contents

Installation

Install via composer

composer require laravel-notification-channels/mstatgr

Setting up the MstatGr service

Add in the services.php configuration file the following lines

    'mstat' => [
        'auth_key' => env('MSTAT_AUTH_KEY', ''),
        'default_from' => env('MSTAT_FROM', ''),
    ]

Usage

This is a sample Notification class

<?php

namespace App\Notifications;

use Illuminate\Notifications\Notification;
use NotificationChannels\MstatGr\MstatGrChannel;
use NotificationChannels\MstatGr\MstatGrMessage;

class TestNotification extends Notification
{
    public function via($notifiable): array
    {
        return [MstatGrChannel::class];
    }

    public function toMstatgr($notifiable)
    {
        return (new MstatGrMessage())
            ->content('This is a sample sms.')
            ->to(306901234567)
            ->from('SENDER');
    }
}

Available Message methods

A list of all available options

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.