quadrogod / laravel-mobizon
Mobizon SMS notifications driver for Laravel
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 3
pkg:composer/quadrogod/laravel-mobizon
Requires
- php: ^7.2.5 || ^8.0
- ext-json: *
- ext-mbstring: *
- lib-curl: *
- guzzlehttp/guzzle: ^7.2
- mobizon/mobizon-php: ~2.0
Requires (Dev)
- mockery/mockery: ^1.4.4
- phpunit/phpunit: ^10.1
This package is auto-updated.
Last update: 2025-10-24 00:20:31 UTC
README
Installation
Install via composer:
composer require quadrogod/laravel-mobizon
Setting up your Mobizon service
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, ],
Usage
The package provides a new channel that can be used in your notification class like the following:
use Illuminate\Notifications\Notification; use Quadrogod\LaravelMobizon\MobizonChannel; use Quadrogod\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; }
Credits
Thanks to laraketai and Alitvinov for the original package.
License
The MIT License (MIT). Please see License File for more information.