New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lbhurtado/engagespark

This package makes it easy to send SMS notifications and topups via engageSPARK with Laravel.
9,676
Install
composer require lbhurtado/engagespark
Latest Version:v3.10
PHP:~7.1||^8.0.1
Laravel:8 – 13
Older releases:5
License:MIT
Last Updated:Aug 2, 2026
Links: GitHub  ·  Packagist
Maintainer: lbhurtado

engageSpark Laravel Notification Package

Latest Version on Packagist Build Status Quality Score Total Downloads

Installation

You can install the package via composer:

composer require lbhurtado/engagespark
php artisan notifications:table
php artisan migrate

required environment variables:

ENGAGESPARK_API_KEY=
ENGAGESPARK_ORGANIZATION_ID=

optional environment variables:

ENGAGESPARK_SENDER_ID=
ENGAGESPARK_SMS_WEBHOOK=
ENGAGESPARK_AIRTIME_WEBHOOK=
NOTIFICATION_CLASS=
ENGAGESPARK_MIN_TOPUP=

optional configuration:

php artisan vendor:publish --provider="LBHurtado\EngageSpark\EngageSparkServiceProvider"

Usage

in your notification:

use LBHurtado\EngageSpark\EngageSparkChannel;
use LBHurtado\EngageSpark\EngageSparkMessage;

public function via($notifiable)
{
    return [EngageSparkChannel::class];
}
 
public function toEngageSpark($notifiable)
{
    return (new EngageSparkMessage())
        ->content('The quick brown fox jumps over the lazy dog.')
        ;
}   

in your notifiable model:

use Illuminate\Notifications\Notifiable;

public function routeNotificationForEngageSpark()
{
    return $this->mobile;
} 

or use the trait:

use LBHurtado\EngageSpark\Traits\HasEngageSpark;

class Contact extends Model 
{
    use HasEngageSpark;
}

in your application:

use LBHurtado\EngageSpark\Notifications\Topup
use LBHurtado\EngageSpark\Notifications\Adhoc;

$user->notify(new Adhoc('The quick brown fox...'));
$user->notify(new Topup(25);

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email lester@hurtado.ph instead of using the issue tracker.

Credits

License

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

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Related Packages

lbhurtado/sms

Driver-based SMS component in Laravel inspired by the tutorial of Orobo Lucky

9,485 0
ohanspace/sms

this is a sms package made for laravel

11 0
sms
midnite81/laravel-base

Base Functionality for Laravel

35,582 3
lbhurtado/common

This is a utility package for lbhurtado/{missive, sms, tactician, engagespark}.

10,314 0
huangdijia/laravel-sms

sms for laravel

7,402 2

Version History

Version Released PHP Laravel License
v3.10 ~7.1||^8.0.1 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v3.9 ~7.1||^8.0.1 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v3.8 ~7.1||^8.0.1 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v3.7 ~7.1||^8.0.1 ^8.0|^9.0|^10.0|^11.0 MIT
v3.6 ~7.1||^8.0.1 ^8.0|^9.0|^10.0 MIT