2017 © Pedro Peláez
 

library sms-telera

SmsTelera Notifications channel for Laravel 5.3+.

image

onix-solutions/sms-telera

SmsTelera Notifications channel for Laravel 5.3+.

  • Monday, June 25, 2018
  • by sandro_bocon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Sms Telera notifications channel for Laravel 5.3+

Latest Version on Packagist Software License Build Status StyleCI SensioLabsInsight Quality Score Code Coverage Total Downloads, (*1)

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

Contents

Installation

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

composer require onix-solutions/sms-telera

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

// config/app.php
'providers' => [
    ...
    OnixSolutions\SmsTelera\SmsTeleraServiceProvider::class,
],

Setting up the SmsTelera service

Add your SmsTelera login, secret key (hashed password) and default sender name (or phone number) to your config/services.php:, (*5)

// config/services.php
...
'smsctelera' => [
    'tk'  => env('SMSCTELERA_TK'),
    'sender' => env('SMSCTELERA_SENDER')
],
...

If you want use other host than smsc.telera, you MUST set custom host WITH trailing slash., (*6)

// .env
...
SMSCTELERA_HOST=http://www1.smsc.kz/
...
// config/services.php
...
'smsctelera' => [
    ...
    'host' => env('SMSCTELERA_HOST'),
    ...
],
...

Usage

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

use Illuminate\Notifications\Notification;
use OnixSolutions\SmsTelera\SmsTeleraMessage;
use OnixSolutions\SmsTelera\SmsTeleraChannel;

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

    public function toSmsTelera($notifiable)
    {
        return SmsTeleraMessage::create("Task #{$notifiable->id} is complete!");
    }
}

In your notifiable model, make sure to include a routeNotificationForSmsctelera() method, which returns a phone number or an array of phone numbers., (*8)

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

Available methods

from(): Sets the sender's name or phone number., (*9)

content(): Set a content of the notification message., (*10)

sendAt(): Set a time for scheduling the notification message., (*11)

Changelog

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

Testing

bash $ composer test, (*13)

Security

If you discover any security related issues, please email jhaoda@gmail.com instead of using the issue tracker., (*14)

Contributing

Please see CONTRIBUTING for details., (*15)

Credits

License

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

The Versions

11/06 2018

dev-analysis-qve2kd

dev-analysis-qve2kd https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр

20/07 2017

v1.1.1

1.1.1.0 https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр

22/05 2017

v1.1.0

1.1.0.0 https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр

14/04 2017

v1.0.2

1.0.2.0 https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр

30/10 2016

v1.0.1

1.0.1.0 https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр

29/08 2016

v1.0.0

1.0.0.0 https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр

13/08 2016

v0.0.1

0.0.1.0 https://github.com/laravel-notification-channels/smsc-ru

SmscRu Notifications driver.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel notifications smsc smscentre СМС-Центр