2017 © Pedro Peláez
 

library laravel-notification-verimor

Verimor SMS for Laravel Notifications

image

umuttaymaz/laravel-notification-verimor

Verimor SMS for Laravel Notifications

  • Wednesday, February 28, 2018
  • by umuttaymaz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Verimor notifications channel for Laravel 5.3+

Software License Build Status StyleCI Total Downloads, (*1)

This package makes it easy to send notifications using VerimorSMS with Laravel 5.3+., (*2)

Contents

Installation

You can install the package via composer:, (*3)

composer require umuttaymaz/laravel-notification-verimor

Then you must install the service provider:, (*4)

// config/app.php
'providers' => [
    ...
    UmutTaymaz\VerimorSMS\VerimorSMSServiceProvider::class,
],

Setting up the VerimorSMS service

Add your Verimor username, password and default sender name to your .env:, (*5)

VERIMOR_USERNAME=username
VERIMOR_PASSWORD=apiPassword
VERIMOR_HEADER=verifiedHeader

Usage

You can use the channel in your via() method inside the notification:, (*6)

use Illuminate\Notifications\Notification;
use NotificationChannels\SmscRu\SmscRuMessage;
use NotificationChannels\SmscRu\SmscRuChannel;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [VerimorSMSChannel::class];
    }

    public function toVerimor($notifiable)
    {
        return VerimorSMSMessage::create('This is notification message');
    }
}

In your notifiable model, make sure to include a routeNotificationForVerimor() method, which return the phone number., (*7)

public function routeNotificationForVerimor()
{
    return $this->phone;
}

Changelog

Please see CHANGELOG for more information what has changed recently., (*8)

Testing

bash $ composer test, (*9)

Security

If you discover any security related issues, please email umut@kreator.com.tr instead of using the issue tracker., (*10)

Contributing

Please see CONTRIBUTING for details., (*11)

Credits

License

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

The Versions