2017 © Pedro Peláez
 

library clickatell

Clickatell RESTful notifications driver

image

wavorster/clickatell

Clickatell RESTful notifications driver

  • Saturday, January 20, 2018
  • by unite
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Clickatell RESTful 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 clickatell.com with Laravel 5.3+., (*2)

Contents

Installation

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

composer require laravel-notification-channels/clickatell

You must install the service provider:, (*4)

// config/app.php
'providers' => [
    ...
    NotificationChannels\Clickatell\ClickatellServiceProvider::class,
],

Setting up the clickatell service

Add your Clickatell user, password and api identifier to your config/services.php:, (*5)

// config/services.php
...
'clickatell' => [
    'user'  => env('CLICKATELL_USER'),
    'pass' => env('CLICKATELL_PASS'),
    'api_id' => env('CLICKATELL_API_ID'),
],
...

Usage

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

use Illuminate\Notifications\Notification;
use NotificationChannels\Clickatell\ClickatellMessage;
use NotificationChannels\Clickatell\ClickatellChannel;

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

    public function toClickatell($notifiable)
    {
        return (new ClickatellMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}

Available methods

TODO, (*7)

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 hello@etiennemarais.co.za 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

20/01 2018

dev-master

9999999-dev https://github.com/WAVorster/clickatell

Clickatell RESTful notifications driver

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel sms restful clickatell notifications