tjmugova/esolutions-sms-laravel

Provides EsolutionsSms notification channel for Laravel

v1.0.1 2025-07-11 10:54 UTC

This package is auto-updated.

Last update: 2025-07-11 11:29:05 UTC


README

A laravel package for sending notifications via esolutions service.

Installation 🚥

Add the package to your composer.json

"require": {
    ... 
    "tjmugova/esolutions-sms-laravel": "{version}"
},

Or just run composer require

$ composer require tjmugova/esolutions-sms-laravel

Configuration

Add your EsolutionsSMS username, Password, API Url, and From to your .env:

ESOLUTIONSSMS_API_URL=https://mobile.esolutions.co.zw/bmg # always required
ESOLUTIONS_SMS_API_ID=ZYX # always required
ESOLUTIONS_SMS_API_PASSWORD=ABCD # always required
ESOLUTIONS_SMS_FROM=1234 # always required

Advanced configuration

Run php artisan vendor:publish --provider="Tjmugova\EsolutionsSms\EsolutionsSmsProvider"

/config/esolutions-sms.php

Usage ✅

For full documentation, please refer to Laravel Notification Docs

Sending Notification

To send notification you can use the Laravel Notification Facade and pass the mobile number as the first parameter

public function send () 
{
    Notification::send('263777777777', new LeadAddedNotification());
    Notification::send(['263777777777', '263777777777'], new LeadAddedNotification());
}
...

/**
 * Get the EsolutionsSms representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return Tjmugova\EsolutionsSms\Messages\EsolutionsSmsMessage
 */
public function toEsolutionsSms($notifiable)
{
    return (new EsolutionsSmsMessage('This is a test message from Laravel'));
}

NOTE:

If you find any bugs or you have some ideas in mind that would make this better. Please don't hesitate to create a pull request.

If you find this package helpful, a simple star is very much appreciated.

MIT LICENSE