alitvinov/laravel-mobizon is a Laravel package for mobizon sms notifications driver for laravel.
It currently has 0 GitHub stars and 19 downloads on Packagist (latest version v1.05).
Install it with composer require alitvinov/laravel-mobizon.
Discover more Laravel packages by alitvinov
or browse all Laravel packages to compare alternatives.
Last updated
Install via composer:
composer require Alitvinov/LaravelMobizon
Add your Mobizon credentials to config/services.php – a common file to store
third-party service credentials.
// config/services.php
...
'mobizon' => [
'domain' => '',
'secret' => '',
'alphaname' => null,
],
The package provides a new channel that can be used in your notification class like the following:
use Illuminate\Notifications\Notification;
use Alitvinov\LaravelMobizon\MobizonChannel;
use Alitvinov\LaravelMobizon\MobizonMessage;
public function via($notifiable)
{
return [MobizonChannel::class];
}
public function toMobizon($notifiable)
{
return MobizonMessage::create("Your SMS message");
}
Add a routeNotificationForMobizon method to your Notifiable model to return the phone number:
public function routeNotificationForMobizon()
{
//Phone number without symbols or spaces
return $this->phone_number;
}
Thanks to laraketai for the original package.
The MIT License (MIT). Please see License File for more information.