2017 © Pedro Peláez
 

library laravel-frontsms

Laravel Front SMS Provider(s)

image

andersevenrud/laravel-frontsms

Laravel Front SMS Provider(s)

  • Friday, June 23, 2017
  • by andersevenrud
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Front SMS Provider(s)

Easy SMS with Front., (*1)

Contains Notification Channel, Service Provider and a Facade., (*2)

Installation

$ composer require andersevenrud/laravel-frontsms

Configuration

In config/app.php:, (*3)


'providers' => [ Laravel\FrontSMS\FrontSMSServiceProvider::class, ], 'aliases' => [ 'FrontSMS' => Laravel\FrontSMS\Facades\FrontSMS::class ]

Then publish configurations:, (*4)

$ php artisan vendor:publish

You now have config/frontsms.php., (*5)

Usage

General

use FrontSMS;

function something() {

  $result = FrontSMS::send(12345678, 'hello world!');

}

Notifications

use NotificationChannels\FrontSMS\FrontSMSChannel;
use NotificationChannels\FrontSMS\FrontSMSMessage;
use Illuminate\Notifications\Notification;

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

    public function toFront($notifiable)
    {
        return FrontSMSMessage::create('12345678', 'Hello world!');
    }
}

Changelog

  • 0.6.1 - Updated composer.json
  • 0.6.0 - Initial release

License

MIT, (*6)

The Versions

23/06 2017

dev-master

9999999-dev

Laravel Front SMS Provider(s)

  Sources   Download

MIT

The Requires

 

23/06 2017

0.6.1

0.6.1.0

Laravel Front SMS Provider(s)

  Sources   Download

MIT

The Requires

 

23/06 2017

0.6.0

0.6.0.0

Laravel Front SMS Provider(s)

  Sources   Download

MIT

The Requires