New

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

franzose/laravel-smpp

SMS sending via SMPP protocol for Laravel framework.
46,433 38
Install
composer require franzose/laravel-smpp
Latest Version:v1.5
Laravel:5 – 11
Last Updated:May 24, 2024
Links: GitHub  ·  Packagist
Maintainer: franzose

Laravel SMPP

This package is a tiny wrapper for the onlinecity/php-smpp library. It provides a basic SMPP interface and implementation for the Laravel framework.

Installation

You can install Laravel SMPP using Composer command:

$ composer require franzose/laravel-smpp

Then you need to add LaravelSmpp\LaravelSmppServiceProvider::class to your providers array in the config/app.php and copy default configuration by invoking $ php artisan vendor:publish command.

Usage

You can use the service pretty straightforward and inject dependency in your controller:

<?php

namespace App\Http\Controllers;

class SmsController extends Controller
{
    public function send(SmppServiceInterface $smpp)
    {
        // One number
        $this->smpp->sendOne(1234567890, 'Hi, this SMS was send via SMPP protocol');
        
        // Multiple numbers
        $this->smpp->sendBulk([1234567890, 0987654321], 'Hi!');
    }
}

However it is better to abstract your SMS sending service from the SMPP implementation by defining a SMPP-compatible service interface.

Related Packages

ohanspace/sms

this is a sms package made for laravel

11 0
sms
midnite81/laravel-base

Base Functionality for Laravel

35,596 3
lbhurtado/sms

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

10,090 0
huangdijia/laravel-sms

sms for laravel

7,458 2
alhaji-aki/laravel-sms

A package that allows developers integrate sms providers and provide a common ap...

6,185 2

Version History

Version Released Laravel License
v1.5 ^5|^6|^7|^8|^9.0|^10.0|^11.0
v1.4 ^5|^6|^7|^8
v1.3.2 ^5|^6|^7
v1.3.1 ^5|^6|^7
v1.3 ^5|^6|^7