rosemalejohn/laravel-message-whiz

Laravel wrapper for Message Whiz API

v0.2.1-alpha 2022-04-01 06:51 UTC

This package is auto-updated.

Last update: 2025-06-29 02:24:21 UTC


README

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.