Looking to hire Laravel developers? Try LaraJobs

laravel-message-whiz maintained by rosemalejohn

Description
Laravel wrapper for Message Whiz API
Last update
2022/04/01 08:51 (dev-main)
License
Links
Downloads
35

Comments
comments powered by Disqus

Laravel Message Whiz

Installation

You can install the package via composer:

composer require rosemalejohn/laravel-message-whiz

The package will automatically register itself.

You can publish the configurations files with:

php artisan vendor:publish --provider="Rosemalejohn\MessageWhiz\MessageWhizServiceProvider"

Laravel Notification

To use MessageWhiz on your Laravel notifications, just add \Rosemalejohn\MessageWhiz\NotificationChannel::class on notification's via method

public function via($notifiable)
{
    return ['database', 'broadcast', \Rosemalejohn\MessageWhiz\NotificationChannel::class]
}

and then implement the function

public function toSms($notifiable): array
{
    return [
        'recipient' => $notifiable->phone_number,
        'message_body' => 'John Doe sent a like'
    ];
}

API Documentation

For complete API documentation, head over to MessageWhiz API documentation

License

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