2017 © Pedro Peláez
 

library skymobile

Skymobile notification channel for Laravel 5.5

image

tomdewit/skymobile

Skymobile notification channel for Laravel 5.5

  • Tuesday, September 26, 2017
  • by ttomdewit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 19 % Grown

The README.md

Skymobile notifications channel for Laravel 5.

This package makes it easy to send Skymobile SMS notifications with Laravel 5.5., (*1)

Please note that the current documentation is out-of-sync with the package., (*2)

Full credit to Peter Steenbergen for his original work on Messagebird., (*3)

Contents

Requirements

You need a registered account with Skymobile since they don't accept new users., (*4)

Installation

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

``` bash composer require tomdewit/skymobile, (*6)


You may install the service provider: ```php // config/app.php 'providers' => [ ... Tomdewit\Skymobile\SkymobileServiceProvider::class, ],

Setting up your Skymobile account

Add your Skymobile Access Key, Default originator (name or number of sender), and default recipients to your config/services.php:, (*7)

// config/services.php
...
'Skymobile' => [
    'access_key' => env('Skymobile_ACCESS_KEY'),
    'originator' => env('Skymobile_ORIGINATOR'),
    'recipients' => env('Skymobile_RECIPIENTS'),
],
...

Notice: The originator can contain a maximum of 11 alfa-numeric characters., (*8)

Usage

Now you can use the channel in your via() method inside the notification:, (*9)

``` php use Tomdewit\Skymobile\SkymobileChannel; use Tomdewit\Skymobile\SkymobileMessage; use Illuminate\Notifications\Notification;, (*10)

class VpsServerOrdered extends Notification { public function via($notifiable) { return [SkymobileChannel::class]; }, (*11)

public function toSkymobile($notifiable)
{
    return (new SkymobileMessage("Your {$notifiable->service} was ordered!"));
}

}, (*12)


## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Security

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

Contributing

Please see CONTRIBUTING for details., (*14)

Credits

License

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

The Versions